summary refs log tree commit diff stats
path: root/system/services
diff options
context:
space:
mode:
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;
   };
 }