diff options
author | Soispha <soispha@vhack.eu> | 2023-07-03 15:19:30 +0200 |
---|---|---|
committer | Soispha <soispha@vhack.eu> | 2023-07-03 18:28:16 +0200 |
commit | 4ef4b09b76e61650e79fe9bb6fe156bd84fb82e0 (patch) | |
tree | dad05cbba1d8d77e0c16d1eeebeaea804de3197e /system | |
parent | Build(cog): Remove 'prod' from whitelist as it's deprecated (diff) | |
download | nixos-server-4ef4b09b76e61650e79fe9bb6fe156bd84fb82e0.tar.gz nixos-server-4ef4b09b76e61650e79fe9bb6fe156bd84fb82e0.zip |
Fix(system/services/nix-sync): Use correct writeScript function
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 9d88429..49a5169 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 = { |