dot_testing/builds/rebuild/rebuild

7 lines
163 B
Plaintext
Executable File

cd ~/dot_testing
if [ -f "flake.nix" ]; then
sudo nixos-rebuild --flake . switch $@
else
sudo nixos-rebuild -I nixos-config=./boxes/$(hostname).nix switch $@
fi