diff --git a/boxes/netbox/custom_command b/boxes/netbox/custom_command new file mode 100644 index 0000000..0d13c40 --- /dev/null +++ b/boxes/netbox/custom_command @@ -0,0 +1 @@ +sudo nixos-rebuild --flake . switch --impure -I nixos-config=./ diff --git a/builds/rebuild/rebuild b/builds/rebuild/rebuild index 33b5995..dc96b9f 100755 --- a/builds/rebuild/rebuild +++ b/builds/rebuild/rebuild @@ -1,4 +1,11 @@ +#!/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