1 { config, lib, pkgs, ... }:
7 cfg = config.services.safeeyes;
19 enable = mkEnableOption "the safeeyes OSGi service";
27 config = mkIf cfg.enable {
29 environment.systemPackages = [ pkgs.safeeyes ];
31 systemd.user.services.safeeyes = {
32 description = "Safeeyes";
34 wantedBy = [ "graphical-session.target" ];
35 partOf = [ "graphical-session.target" ];
37 startLimitIntervalSec = 350;
41 ${pkgs.safeeyes}/bin/safeeyes
43 Restart = "on-failure";