From 4ef4b09b76e61650e79fe9bb6fe156bd84fb82e0 Mon Sep 17 00:00:00 2001 From: Soispha Date: Mon, 3 Jul 2023 15:19:30 +0200 Subject: Fix(system/services/nix-sync): Use correct writeScript function --- system/services/nix-sync/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'system/services/nix-sync/default.nix') 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 = { -- cgit 1.4.1