bin/hey: use $HOSTNAME (but fall back to $HOST)
This commit is contained in:
parent
aa350a6a5c
commit
a7c9a87d5d
2
bin/hey
2
bin/hey
|
@ -62,7 +62,7 @@ function main {
|
||||||
function _rebuild {
|
function _rebuild {
|
||||||
# Move to $DOTFILES to prevent polluting the system with result links
|
# Move to $DOTFILES to prevent polluting the system with result links
|
||||||
pushd $DOTFILES >/dev/null
|
pushd $DOTFILES >/dev/null
|
||||||
_do sudo nixos-rebuild --flake ".#$HOST" ${@:-build}
|
_do sudo nixos-rebuild --flake ".#${HOSTNAME:-$HOST}" ${@:-build}
|
||||||
popd >/dev/null
|
popd >/dev/null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue