From a7c9a87d5d68d4669156a4ceebd5ab00865cccf6 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 20 Dec 2020 20:12:26 -0500 Subject: [PATCH] bin/hey: use $HOSTNAME (but fall back to $HOST) --- bin/hey | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/hey b/bin/hey index 92181d9c..534f454d 100755 --- a/bin/hey +++ b/bin/hey @@ -62,7 +62,7 @@ function main { function _rebuild { # Move to $DOTFILES to prevent polluting the system with result links pushd $DOTFILES >/dev/null - _do sudo nixos-rebuild --flake ".#$HOST" ${@:-build} + _do sudo nixos-rebuild --flake ".#${HOSTNAME:-$HOST}" ${@:-build} popd >/dev/null }