From 77e512a900f9aaf70f536e35afcf4a4b752e11f0 Mon Sep 17 00:00:00 2001 From: Soispha Date: Sun, 25 Jun 2023 20:20:27 +0200 Subject: Fix(system/services/git-sync): Use correct systemd options --- system/services/git-sync/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'system') 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; }; } -- cgit 1.4.1