mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-12-14 11:57:34 +00:00
Merge pull request #340 from hauleth/fix/use-short-hostname
Use short hostname as flake attribute name
This commit is contained in:
commit
4fdbb8168f
1 changed files with 2 additions and 2 deletions
|
@ -120,9 +120,9 @@ if [ -n "$flake" ]; then
|
|||
flakeAttr="${BASH_REMATCH[2]}"
|
||||
fi
|
||||
if [ -z "$flakeAttr" ]; then
|
||||
flakeAttr=$(hostname)
|
||||
flakeAttr=$(hostname -s)
|
||||
fi
|
||||
flakeAttr=darwinConfigurations.${flakeAttr%.local}
|
||||
flakeAttr=darwinConfigurations.${flakeAttr}
|
||||
fi
|
||||
|
||||
if [ -n "$flake" ]; then
|
||||
|
|
Loading…
Reference in a new issue