From de4239f97c7d36d0a7977bbcb94c6d8ae1a0b7d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Niemier?= Date: Fri, 9 Jul 2021 10:12:23 +0200 Subject: [PATCH] fix: use short hostname as flake attribute name --- pkgs/nix-tools/darwin-rebuild.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/nix-tools/darwin-rebuild.sh b/pkgs/nix-tools/darwin-rebuild.sh index 3b4fb08f..cb250891 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