diff options
author | Soispha <soispha@vhack.eu> | 2023-07-03 15:19:30 +0200 |
---|---|---|
committer | Soispha <soispha@vhack.eu> | 2023-07-03 15:19:30 +0200 |
commit | 1b57ef2ea8c9409a06fff2c1e943b67af84f2b96 (patch) | |
tree | 09ca5326b4b697317ffe87e084ec62a9f13532b3 /system/services | |
parent | Build(cog): Remove 'prod' from whitelist as it's deprecated (diff) | |
download | nixos-server-1b57ef2ea8c9409a06fff2c1e943b67af84f2b96.tar.gz nixos-server-1b57ef2ea8c9409a06fff2c1e943b67af84f2b96.zip |
Fix(system/services/nix-sync): Use correct writeScript function
Diffstat (limited to 'system/services')
-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 = { |