1 { config, lib, pkgs, ... }:
6 cfg = config.services.greenclip;
9 options.services.greenclip = {
10 enable = mkEnableOption (lib.mdDoc "Greenclip daemon");
14 default = pkgs.haskellPackages.greenclip;
15 defaultText = literalExpression "pkgs.haskellPackages.greenclip";
16 description = lib.mdDoc "greenclip derivation to use.";
20 config = mkIf cfg.enable {
21 systemd.user.services.greenclip = {
23 description = "greenclip daemon";
24 wantedBy = [ "graphical-session.target" ];
25 after = [ "graphical-session.target" ];
26 serviceConfig.ExecStart = "${cfg.package}/bin/greenclip daemon";
29 environment.systemPackages = [ cfg.package ];