From 2b58720b22980359a9b76a615dd11b75b956574b Mon Sep 17 00:00:00 2001 From: Scott Worley Date: Sun, 3 May 2020 02:32:45 -0700 Subject: [PATCH] Absolute path for flock Fixes "flock: command not found" when run from systemd --- modules/auto-upgrade.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/auto-upgrade.nix b/modules/auto-upgrade.nix index cc98ad0..9ff5ee2 100644 --- a/modules/auto-upgrade.nix +++ b/modules/auto-upgrade.nix @@ -3,7 +3,7 @@ with lib; let cfg = config.system.autoUpgradeWithPinch; auto-upgrade-script = pkgs.writeShellScript "auto-upgrade" '' - flock /run/auto-upgrade-with-pinch ${ + ${pkgs.utillinux}/bin/flock /run/auto-upgrade-with-pinch ${ pkgs.writeShellScript "auto-upgrade-with-lock-held" '' set -e -- 2.44.1