make the switcher generic and use hostname
parent
63ec667e45
commit
8e1a0f05f3
|
@ -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
|
||||
|
|
Reference in New Issue