Deployment and lifecycle management for Nix
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

rename sower -> sower-client

+5 -5
+5 -5
nix/home-module.nix
··· 5 5 ... 6 6 }: 7 7 let 8 - cfg = config.services.sower; 8 + cfg = config.services.sower.client; 9 9 toml = pkgs.formats.toml { }; 10 10 tomlType = toml.type; 11 11 in 12 12 { 13 13 options = { 14 - services.sower = { 14 + services.sower.client = { 15 15 enable = lib.mkEnableOption "Sower client"; 16 16 17 17 package = lib.mkOption { type = lib.types.package; }; ··· 58 58 } 59 59 60 60 (lib.mkIf pkgs.stdenv.isLinux { 61 - systemd.user.services.sower = { 61 + systemd.user.services.sower-client = { 62 62 Service = { 63 63 Environment = [ "PATH=${lib.makeBinPath [ pkgs.nix ]}" ]; 64 64 ExecStart = "${lib.getExe cfg.package} tree upgrade"; ··· 66 66 }; 67 67 }; 68 68 69 - systemd.user.timers.sower = { 69 + systemd.user.timers.sower-client = { 70 70 Install.WantedBy = [ "timers.target" ]; 71 71 72 72 Timer = { ··· 78 78 79 79 (lib.mkIf pkgs.stdenv.isDarwin { 80 80 launchd = { 81 - agents.sower = { 81 + agents.sower-client = { 82 82 enable = true; 83 83 config = { 84 84 KeepAlive = false;