Fix nix not found in systemd PATH for update services
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
bb419a13af
commit
bb41c4f82a
1 changed files with 1 additions and 0 deletions
|
|
@ -37,6 +37,7 @@ let
|
||||||
|
|
||||||
updateScript = site: pkgs.writeShellScript "do-update-${site.name}" ''
|
updateScript = site: pkgs.writeShellScript "do-update-${site.name}" ''
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
export PATH=/run/current-system/sw/bin:$PATH
|
||||||
cd /etc/nixos
|
cd /etc/nixos
|
||||||
OLD=$(${pkgs.jq}/bin/jq -r '.nodes.${site.input}.locked.rev' flake.lock)
|
OLD=$(${pkgs.jq}/bin/jq -r '.nodes.${site.input}.locked.rev' flake.lock)
|
||||||
nix flake update ${site.input}
|
nix flake update ${site.input}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue