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:
randogoth 2026-05-14 13:46:28 +03:00
parent bb419a13af
commit bb41c4f82a

View file

@ -37,6 +37,7 @@ let
updateScript = site: pkgs.writeShellScript "do-update-${site.name}" ''
set -euo pipefail
export PATH=/run/current-system/sw/bin:$PATH
cd /etc/nixos
OLD=$(${pkgs.jq}/bin/jq -r '.nodes.${site.input}.locked.rev' flake.lock)
nix flake update ${site.input}