This commit is contained in:
Tao Tien 2024-12-30 21:12:17 -08:00
parent bb8368fa1c
commit 6d341f6d28
4 changed files with 34 additions and 34 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\n" and not ($rest | first | str starts-with "--builders")) {
if ((open /etc/hostname --raw) == "NOlaptop\n" and not (try {$rest | first | str starts-with "--builders"})) {
sudo nix store info --store ssh://nocomputer
}
sudo nice -n19 nixos-rebuild $subcommand --flake /home/tao/projects/NOflake/ --impure --verbose ...$rest