diff options
Diffstat (limited to 'system')
-rw-r--r-- | system/services/nix-sync/default.nix | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/system/services/nix-sync/default.nix b/system/services/nix-sync/default.nix index 18511b3..2df1ae5 100644 --- a/system/services/nix-sync/default.nix +++ b/system/services/nix-sync/default.nix @@ -8,7 +8,8 @@ mkUnit = name: repo: let esa = lib.strings.escapeShellArg; - execStartScript = lib.writeShellScript "git-sync-exec" '' + execStartScript = pkgs.writeScript "git-sync-exec" '' + #! /usr/bin/env dash cd ${esa cfg.cachePath}/${esa repo.path}; while true; do @@ -46,7 +47,7 @@ description = "Nix Sync ${name}"; wantedBy = ["default.target"]; after = ["network.target"]; - path = with pkgs; [openssh git nix mktemp coreutils]; + path = with pkgs; [openssh git nix mktemp coreutils dash]; preStart = execStartPreScript; serviceConfig = { |