]> git.immae.eu Git - perso/Immae/Config/Nix.git/commitdiff
Add next-boot recipe to makefile
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Thu, 4 Mar 2021 23:37:03 +0000 (00:37 +0100)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Thu, 4 Mar 2021 23:37:03 +0000 (00:37 +0100)
Makefile
nixops/Makefile

index 466b63a7d045ebc1d7de27214eb4f2e3972ef2e4..e5b9284a5d987abc0ee3ace49b14b36b543a297a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
 subrecipes = setup nix-info edit_env
 subrecipes += ssh-eldiron ssh-backup-2 ssh-monitoring-1 ssh-4c
 subrecipes = setup nix-info edit_env
 subrecipes += ssh-eldiron ssh-backup-2 ssh-monitoring-1 ssh-4c
-subrecipes += debug build dry-run upload deploy deploy-reboot
+subrecipes += debug build dry-run upload deploy next-boot deploy-reboot
 subrecipes += list-generations delete-generations cleanup
 ${subrecipes}:
        @$(MAKE) --no-print-directory -C nixops/ $@
 subrecipes += list-generations delete-generations cleanup
 ${subrecipes}:
        @$(MAKE) --no-print-directory -C nixops/ $@
index f232e8a73c9d52020e7a15948c2f92b24222f13a..f3d06efdbb0d33036e41975eb4707bc13d4a586c 100644 (file)
@@ -59,6 +59,10 @@ deploy:
        ./scripts/with_env morph deploy default.nix switch --keep-result --upload-secrets $(MORPH_ARGS)
        nix-env -p $(PROFILE) --set .gcroots/default.nix
 
        ./scripts/with_env morph deploy default.nix switch --keep-result --upload-secrets $(MORPH_ARGS)
        nix-env -p $(PROFILE) --set .gcroots/default.nix
 
+next-boot:
+       ./scripts/with_env morph deploy default.nix boot --keep-result --upload-secrets $(MORPH_ARGS)
+       nix-env -p $(PROFILE) --set .gcroots/default.nix
+
 deploy-reboot:
        ./scripts/with_env morph deploy default.nix boot --reboot --upload-secrets $(MORPH_ARGS)
 
 deploy-reboot:
        ./scripts/with_env morph deploy default.nix boot --reboot --upload-secrets $(MORPH_ARGS)