simpler rebuild.sh
This commit is contained in:
parent
6b24207c73
commit
410742a7ad
|
@ -3,9 +3,7 @@
|
||||||
hostname=$(hostname)
|
hostname=$(hostname)
|
||||||
|
|
||||||
if [[ $hostname == *"desktop"* ]]; then
|
if [[ $hostname == *"desktop"* ]]; then
|
||||||
sudo nixos-rebuild switch --flake ~/nix/#desktop &>nixos-switch.log || (cat nixos-switch.log | grep --color error && false)
|
sudo nixos-rebuild switch --flake ~/nix/#desktop
|
||||||
rm nixos-switch.log
|
|
||||||
elif [[ $hostname == *"laptop"* ]]; then
|
elif [[ $hostname == *"laptop"* ]]; then
|
||||||
sudo nixos-rebuild switch --flake ~/nix/#laptop &>nixos-switch.log || (cat nixos-switch.log | grep --color error && false)
|
sudo nixos-rebuild switch --flake ~/nix/#laptop
|
||||||
rm nixos-switch.log
|
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue