This commit is contained in:
Tao Tien 2024-11-30 16:14:07 -08:00
parent 8134e39d32
commit 0b2fd7b10d
4 changed files with 21 additions and 195 deletions

View file

@ -69,7 +69,7 @@ def nr [package] {
nix search nixpkgs $package
}
def rebuild --wrapped [subcommand, ...rest] {
if ((open /etc/hostname --raw) == NOlaptop) {
if ((open /etc/hostname --raw) == "NOlaptop\n") {
sudo nix store info --store ssh://nocomputer
}
sudo nice -n19 nixos-rebuild $subcommand --flake /home/tao/projects/NOflake/ --impure --verbose ...$rest