From 22419fddf7f6c4db378dde8e597a405436a292e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carl=20Thom=C3=A9?= Date: Mon, 29 May 2023 12:10:46 +0200 Subject: [PATCH] Use LocalHostName --- pkgs/nix-tools/darwin-rebuild.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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