make the switcher generic and use hostname

main
Brian Hicks 2021-09-08 07:50:26 -05:00
parent 63ec667e45
commit 8e1a0f05f3
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ case "$(uname -s)" in
;;
Darwin)
nix-shell "-p" nixUnstable --run 'nix --experimental-features "nix-command flakes" build .#darwinConfigurations.flame.system'
nix-shell "-p" nixUnstable --run "nix --experimental-features 'nix-command flakes' build .#darwinConfigurations.$(hostname -s).system"
if test "$@" != "build"; then
./result/sw/bin/darwin-rebuild --flake . "$@"
fi