1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-12-14 11:57:34 +00:00

Use LocalHostName

This commit is contained in:
Carl Thomé 2023-05-29 12:10:46 +02:00
parent 80bb201f49
commit 22419fddf7
No known key found for this signature in database

View file

@ -132,7 +132,7 @@ if [ -n "$flake" ]; then
flakeAttr=${fragment} flakeAttr=${fragment}
fi fi
if [ -z "$flakeAttr" ]; then if [ -z "$flakeAttr" ]; then
flakeAttr=$(hostname -s) flakeAttr=$(scutil --get LocalHostName)
fi fi
flakeAttr=darwinConfigurations.${flakeAttr} flakeAttr=darwinConfigurations.${flakeAttr}
fi fi