summary refs log tree commit diff stats
path: root/system/services
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2023-07-03 15:19:30 +0200
committerSoispha <soispha@vhack.eu>2023-07-03 15:19:30 +0200
commit1b57ef2ea8c9409a06fff2c1e943b67af84f2b96 (patch)
tree09ca5326b4b697317ffe87e084ec62a9f13532b3 /system/services
parentBuild(cog): Remove 'prod' from whitelist as it's deprecated (diff)
downloadnixos-server-1b57ef2ea8c9409a06fff2c1e943b67af84f2b96.tar.gz
nixos-server-1b57ef2ea8c9409a06fff2c1e943b67af84f2b96.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 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 = {