bin/hey: use $HOSTNAME (but fall back to $HOST)

This commit is contained in:
Henrik Lissner 2020-12-20 20:12:26 -05:00
parent aa350a6a5c
commit a7c9a87d5d
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -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
}