From d98503a8490cd571ead716530064fbc256f4867a Mon Sep 17 00:00:00 2001 From: ChUrl Date: Sun, 9 Jul 2023 11:11:52 +0200 Subject: [PATCH] Add servenix shell commands --- shell.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/shell.nix b/shell.nix index 885725ee..358a9c4a 100644 --- a/shell.nix +++ b/shell.nix @@ -109,6 +109,21 @@ pkgs.devshell.mkShell { help = "Rebuild and activate config on next boot"; command = "sudo nixos-rebuild boot --flake .#nixtop"; } + { + name = "rebuild-switch-servenix"; + help = "Rebuild and activate the servenix config"; + command = "sudo nixos-rebuild switch --flake .#servenix"; + } + { + name = "rebuild-build-servenix"; + help = "Rebuild and diff the servenix config (to diff systems)"; + command = "sudo nixos-rebuild build --flake .#servenix"; + } + { + name = "rebuild-boot-servenix"; + help = "Rebuild and activate config on next boot"; + command = "sudo nixos-rebuild boot --flake .#servenix"; + } # Help text (this is pretty stupid) {