ops: update deploy instructions to include profile set

This is necessary for the NixOS EFI boot machinery to pick up the new
derivation when switching to it, otherwise the machine will not boot
into the newly switched configuration.

Change-Id: I8b18956d2afeea09c38462f09a00c345cf86f80d
This commit is contained in:
q3k 2021-04-18 20:12:20 +02:00 committed by q3k
parent 3df9d0c082
commit 0ec06d7b75

View file

@ -11,7 +11,10 @@
# To then deploy derivation $d on $machine:
#
# nix-copy-closure --to root@$machine $d
# ssh root@$machine $d/bin/switch-to-configuration
# ssh root@$machine $d/bin/switch-to-configuration dry-activate
# ssh root@$machine $d/bin/switch-to-configuration test
# ssh root@$machine nix-env -p /nix/var/nix/profiles/system --set $d
# ssh root@$machine $d/bin/switch-to-configuration boot
#
# TODO(q3k): merge this with //cluster/clustercfg - this should be unified!