1

add some commands to shell.nix

This commit is contained in:
2022-10-28 12:34:14 +02:00
parent 417c1e6595
commit 3b37e7b0e3

View File

@ -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)
{