From 3b37e7b0e380e2725ab3d2714281cfc9feaefa6c Mon Sep 17 00:00:00 2001 From: ChUrl Date: Fri, 28 Oct 2022 12:34:14 +0200 Subject: [PATCH] add some commands to shell.nix --- shell.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/shell.nix b/shell.nix index 88802ad9..fa5a4167 100644 --- a/shell.nix +++ b/shell.nix @@ -87,9 +87,14 @@ pkgs.devshell.mkShell { } { name = "rebuild-build-nixinator"; - help = "Rebuild and diff the nixinator config (to diff systems)"; + help = "Rebuild the nixinator config (to diff systems)"; command = "sudo nixos-rebuild build --flake .#nixinator"; } + { + name = "rebuild-boot-nixinator"; + help = "Rebuild and activate config on next boot"; + command = "sudo nixos-rebuild boot --flake .#nixinator"; + } { name = "rebuild-switch-nixtop"; help = "Rebuild and activate the nixtop config"; @@ -100,6 +105,11 @@ pkgs.devshell.mkShell { help = "Rebuild and diff the nixtop config (to diff systems)"; command = "sudo nixos-rebuild build --flake .#nixtop"; } + { + name = "rebuild-boot-nixtop"; + help = "Rebuild and activate config on next boot"; + command = "sudo nixos-rebuild boot --flake .#nixtop"; + } # Help text (this is pretty stupid) {