2024-07-22 14:21:02 -05:00
|
|
|
#!/bin/sh
|
|
|
|
|
2023-08-13 20:13:48 -05:00
|
|
|
cd ~/dot_testing
|
2024-10-26 12:08:22 -05:00
|
|
|
if [ "$(hostname)" = "localhost" ]; then
|
|
|
|
# we're on a phone
|
|
|
|
cd boxes/phone/out-of-tree
|
|
|
|
make $@
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
2024-07-22 14:21:02 -05:00
|
|
|
if [ -f "boxes/$(hostname)/custom_command" ]; then
|
|
|
|
eval "$(cat boxes/$(hostname)/custom_command)"
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
2024-01-15 03:52:45 -06:00
|
|
|
if [ -f "flake.nix" ]; then
|
|
|
|
sudo nixos-rebuild --flake . switch $@
|
|
|
|
else
|
|
|
|
sudo nixos-rebuild -I nixos-config=./boxes/$(hostname).nix switch $@
|
|
|
|
fi
|