diff options
author | Soispha <soispha@vhack.eu> | 2023-06-25 20:20:27 +0200 |
---|---|---|
committer | Soispha <soispha@vhack.eu> | 2023-06-25 20:20:27 +0200 |
commit | 77e512a900f9aaf70f536e35afcf4a4b752e11f0 (patch) | |
tree | 73642732a771365e2cd961808be7ad72e47071e9 /system/services/git-sync/default.nix | |
parent | Fix(system/services/git-sync): Switch to str to avoid impurity (diff) | |
download | nixos-server-77e512a900f9aaf70f536e35afcf4a4b752e11f0.tar.gz nixos-server-77e512a900f9aaf70f536e35afcf4a4b752e11f0.zip |
Fix(system/services/git-sync): Use correct systemd options
Diffstat (limited to 'system/services/git-sync/default.nix')
-rw-r--r-- | system/services/git-sync/default.nix | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/system/services/git-sync/default.nix b/system/services/git-sync/default.nix index fce0819..4295870 100644 --- a/system/services/git-sync/default.nix +++ b/system/services/git-sync/default.nix @@ -11,11 +11,11 @@ https://github.com/nix-community/home-manager/blob/9ba7b3990eb1f4782ea3f5fe7ac4f cfg = config.services.git-sync; mkUnit = name: repo: { - Unit.Description = "Git Sync ${name}"; + unitConfig.Description = "Git Sync ${name}"; - Install.WantedBy = ["default.target"]; + wantedBy = ["default.target"]; - Service = { + serviceConfig = { Environment = [ "PATH=${lib.makeBinPath (with pkgs; [openssh git])}" "GIT_SYNC_DIRECTORY=${repo.path}" @@ -94,6 +94,6 @@ in { }; config = lib.mkIf cfg.enable { - systemd.user.services = services; + systemd.services = services; }; } |