#!/bin/sh cd ~/dot_testing if [ -f "boxes/$(hostname)/custom_command" ]; then eval "$(cat boxes/$(hostname)/custom_command)" exit fi if [ -f "flake.nix" ]; then sudo nixos-rebuild --flake . switch $@ else sudo nixos-rebuild -I nixos-config=./boxes/$(hostname).nix switch $@ fi