diff options
| author | Domen Kožar <domen@dev.si> | 2022-03-26 07:11:11 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-26 07:11:11 +0000 |
| commit | 4fdbb8168f61d31d3f90bb0d07f48de709c4fe79 (patch) | |
| tree | e3fcd3a01354ae7bc385db2c6679c3f955ded604 | |
| parent | 8a1a4548733c20e605635e922315c948ed353b92 (diff) | |
| parent | de4239f97c7d36d0a7977bbcb94c6d8ae1a0b7d3 (diff) | |
Merge pull request #340 from hauleth/fix/use-short-hostname
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 22a3f90..8952ee5 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 |
