...and get the default attribute of that rather than the hostname
diff --git a/scripts/rebuild-system.sh b/scripts/rebuild-system.sh
index 777a5c5..8e726c2 100755
--- a/scripts/rebuild-system.sh
+++ b/scripts/rebuild-system.sh
@@ -9,6 +9,6 @@
     /usr/bin/env git commit -am "$changes"
 fi
 
-sudo nixos-rebuild switch --impure --flake .# $1
+sudo nixos-rebuild switch --impure --flake .#default $1
 ./result/activate
 unlink ./result