diff --git a/pkgs/nix-tools/darwin-rebuild.sh b/pkgs/nix-tools/darwin-rebuild.sh index d8c66bdd..2d288bdf 100644 --- a/pkgs/nix-tools/darwin-rebuild.sh +++ b/pkgs/nix-tools/darwin-rebuild.sh @@ -132,7 +132,7 @@ if [ -n "$flake" ]; then flakeAttr=${fragment} fi if [ -z "$flakeAttr" ]; then - flakeAttr=$(hostname -s) + flakeAttr=$(scutil --get LocalHostName) fi flakeAttr=darwinConfigurations.${flakeAttr} fi