summary refs log tree commit diff stats
path: root/system/services/nix-sync
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2023-07-03 15:19:30 +0200
committerSoispha <soispha@vhack.eu>2023-07-03 18:28:16 +0200
commit4ef4b09b76e61650e79fe9bb6fe156bd84fb82e0 (patch)
treedad05cbba1d8d77e0c16d1eeebeaea804de3197e /system/services/nix-sync
parentBuild(cog): Remove 'prod' from whitelist as it's deprecated (diff)
downloadnixos-server-4ef4b09b76e61650e79fe9bb6fe156bd84fb82e0.tar.gz
nixos-server-4ef4b09b76e61650e79fe9bb6fe156bd84fb82e0.zip
Fix(system/services/nix-sync): Use correct writeScript function
Diffstat (limited to '')
-rw-r--r--system/services/nix-sync/default.nix5
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 = {