fix: it's a good idea to also add the generation to the profile...

This commit is contained in:
oddlama 2023-09-26 15:52:38 +02:00
parent aed03a5c2b
commit c9f0f1a026
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
3 changed files with 52 additions and 52 deletions

View file

@ -93,7 +93,7 @@
for host in "''${HOSTS[@]}"; do
store_path="''${TOPLEVEL_STORE_PATHS["$host"]}"
echo " Copying  $host"
nix copy --to "ssh-ng://$host" "$store_path"
nix copy --to "ssh://$host" "$store_path"
time_next
echo " Copied  $host in ''${T_LAST}s"
done
@ -101,8 +101,8 @@
for host in "''${HOSTS[@]}"; do
store_path="''${TOPLEVEL_STORE_PATHS["$host"]}"
echo " Applying  $host"
ssh "$host" -- /run/current-system/sw/bin/nix-env --profile /nix/var/nix/profiles/system --set "$store_path"
ssh "$host" -- "$store_path"/bin/switch-to-configuration "$ACTION"
nix copy --to "ssh-ng://$host" "$store_path"
time_next
echo " Applied  $host in ''${T_LAST}s"
done