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:
parent
80bb201f49
commit
22419fddf7
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue