packages: properly activate configuration to switch /etc files
This commit is contained in:
parent
fc0699251b
commit
b3835dccc4
|
@ -216,7 +216,14 @@ lib.attrsets.mapAttrs
|
|||
|
||||
if [[ -n ''${NIXOS_REBUILD:-} ]]; then
|
||||
echo "Switching to configuration..."
|
||||
ssh ${target} -- ${toplevelOutPath}/bin/switch-to-configuration "''${@:-switch}"
|
||||
ssh ${target} bash -e <<END
|
||||
set -eou pipefail
|
||||
|
||||
${toplevelOutPath}/bin/switch-to-configuration "''${@:-switch}"
|
||||
nix-env -p /nix/var/nix/profiles/system --set ${toplevelOutPath}
|
||||
END
|
||||
# ^ yes, this is required to be like this
|
||||
|
||||
fi
|
||||
''
|
||||
else throw "${name} is not configured to run on microvm.nix. Is it a physical host or is it deployed in Skyflake?"
|
||||
|
|
Loading…
Reference in New Issue
Block a user