From f409f389c02093ff8befe331d01b8902177bbfeb Mon Sep 17 00:00:00 2001 From: ChUrl Date: Sun, 7 Aug 2022 13:13:05 +0200 Subject: [PATCH] new commands --- flake.nix | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/flake.nix b/flake.nix index 89a1cc67..411ef61d 100644 --- a/flake.nix +++ b/flake.nix @@ -65,6 +65,36 @@ help = "Launch clion in this folder"; command = "clion ./ &>/dev/null &"; } + { + name = "update"; + help = "Update the flake"; + command = "nix flake update"; + } + { + name = "check"; + help = "Validate the flake"; + command = "nix flake check"; + } + { + name = "switch-nixinator"; + help = "Rebuild and activate the nixinator config"; + command = "sudo nixos-rebuild switch --flake .#nixinator"; + } + { + name = "build-nixinator"; + help = "Rebuild and diff the nixinator config"; + command = "sudo nixos-rebuild build --flake .#nixinator | nvd diff /run/current-system result"; + } + { + name = "switch-nixtop"; + help = "Rebuild and activate the nixtop config"; + command = "sudo nixos-rebuild switch --flake .#nixtop"; + } + { + name = "build-nixtop"; + help = "Rebuild and diff the nixtop config"; + command = "sudo nixos-rebuild build --flake .#nixtop | nvd diff /run/current-system result"; + } ]; };