add rebuild-nova to nh.nix, bump

This commit is contained in:
Henry Hiles 2025-10-17 13:59:19 -04:00
commit 9fadebd56e
No known key found for this signature in database
2 changed files with 35 additions and 29 deletions

View file

@ -5,11 +5,16 @@
flake = "/home/quadradical/.config/nixos";
};
environment.shellAliases = {
clean = "nh clean all";
update = "env -C ~/.config/nixos nix flake update";
upgrade = "nh os switch --update";
rebuild = "nh os switch";
rebuild-server = "nh os switch --hostname quadraticserver --target-host 192.168.0.132";
};
environment.shellAliases =
let
build = "nixos-rebuild switch --flake ~/.config/nixos#quadraticserver server --ask-sudo-password --target-host ";
in
{
clean = "nh clean all";
update = "env -C ~/.config/nixos nix flake update";
upgrade = "nh os switch --update";
rebuild = "nh os switch";
rebuild-server = build + "server";
rebuild-nova = build + "nova";
};
}