From: Ismaƫl Bouya Date: Thu, 4 Mar 2021 23:37:03 +0000 (+0100) Subject: Add next-boot recipe to makefile X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;ds=sidebyside;h=0c9152bd668e599bf1f3b0f95e48bc07e649ac25;p=perso%2FImmae%2FConfig%2FNix.git Add next-boot recipe to makefile --- diff --git a/Makefile b/Makefile index 466b63a..e5b9284 100644 --- 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 += 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/ $@ diff --git a/nixops/Makefile b/nixops/Makefile index f232e8a..f3d06ef 100644 --- a/nixops/Makefile +++ b/nixops/Makefile @@ -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 +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)