diff options
| author | Łukasz Niemier <lukasz@niemier.pl> | 2021-07-09 10:12:23 +0200 |
|---|---|---|
| committer | Łukasz Niemier <lukasz@niemier.pl> | 2021-07-09 10:12:23 +0200 |
| commit | de4239f97c7d36d0a7977bbcb94c6d8ae1a0b7d3 (patch) | |
| tree | 639036e759b484d1087bb96e05369a982eca249b | |
| parent | 007d700e644ac588ad6668e6439950a5b6e2ff64 (diff) | |
fix: use short hostname as flake attribute name
| -rw-r--r-- | pkgs/nix-tools/darwin-rebuild.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/nix-tools/darwin-rebuild.sh b/pkgs/nix-tools/darwin-rebuild.sh index 3b4fb08..cb25089 100644 --- a/pkgs/nix-tools/darwin-rebuild.sh +++ b/pkgs/nix-tools/darwin-rebuild.sh @@ -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 |
