summary refs log tree commit diff stats
path: root/system/services/git-sync/default.nix
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2023-06-25 20:20:27 +0200
committerSoispha <soispha@vhack.eu>2023-06-25 20:20:27 +0200
commit77e512a900f9aaf70f536e35afcf4a4b752e11f0 (patch)
tree73642732a771365e2cd961808be7ad72e47071e9 /system/services/git-sync/default.nix
parentFix(system/services/git-sync): Switch to str to avoid impurity (diff)
downloadnixos-server-77e512a900f9aaf70f536e35afcf4a4b752e11f0.tar.gz
nixos-server-77e512a900f9aaf70f536e35afcf4a4b752e11f0.zip
Fix(system/services/git-sync): Use correct systemd options
Diffstat (limited to '')
-rw-r--r--system/services/git-sync/default.nix8
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;
   };
 }