Set PATH for user-data switch runner
This commit is contained in:
@@ -151,6 +151,7 @@ write_final_config() {
|
||||
cat > "$runner" <<RUNNER_EOF
|
||||
#!$${pkgs.runtimeShell}
|
||||
set -eu
|
||||
export PATH="$${lib.makeBinPath [ pkgs.coreutils pkgs.git pkgs.systemd ]}"
|
||||
|
||||
$${config.system.build.nixos-rebuild}/bin/nixos-rebuild switch --flake /etc/nixos
|
||||
printf '%s\n' "$new_hash" > "$applied_hash_file"
|
||||
|
||||
Reference in New Issue
Block a user