python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / nixos / modules / services / misc / safeeyes.nix
blob9dfa2001bcb717624c1fb3c8f6a661f591f450eb
1 { config, lib, pkgs, ... }:
3 with lib;
5 let
7   cfg = config.services.safeeyes;
9 in
13   ###### interface
15   options = {
17     services.safeeyes = {
19       enable = mkEnableOption (lib.mdDoc "the safeeyes OSGi service");
21     };
23   };
25   ###### implementation
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;
38       startLimitBurst = 10;
39       serviceConfig = {
40         ExecStart = ''
41           ${pkgs.safeeyes}/bin/safeeyes
42         '';
43         Restart = "on-failure";
44         RestartSec = 3;
45       };
46     };
48   };