8 cfg = config.services.greenclip;
12 options.services.greenclip = {
13 enable = lib.mkEnableOption "Greenclip, a clipboard manager";
15 package = lib.mkPackageOption pkgs [ "haskellPackages" "greenclip" ] { };
18 config = lib.mkIf cfg.enable {
19 systemd.user.services.greenclip = {
21 description = "greenclip daemon";
22 wantedBy = [ "graphical-session.target" ];
23 after = [ "graphical-session.target" ];
25 ExecStart = "${cfg.package}/bin/greenclip daemon";
30 environment.systemPackages = [ cfg.package ];