Fix $HOST references

$HOSTNAME won't be set. $HOST will.
This commit is contained in:
Henrik Lissner 2020-10-26 05:47:31 -04:00
parent aa57d2ccad
commit da2eebf5d5
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -8,8 +8,8 @@
# hey cd|check -> nix flake check $DOTFILES # hey cd|check -> nix flake check $DOTFILES
# hey sh|show -> nix flake show $DOTFILES # hey sh|show -> nix flake show $DOTFILES
# hey u|update -> nix flake update --recreate-lock-file $DOTFILES # hey u|update -> nix flake update --recreate-lock-file $DOTFILES
# hey re|rebuild -> nixos-rebuild --flake $DOTFILES#$HOSTNAME ${1:-build} # hey re|rebuild -> nixos-rebuild --flake $DOTFILES#$HOST ${1:-build}
# hey t|test -> nixos-rebuild --flake $DOTFILES#$HOSTNAME --fast test # hey t|test -> nixos-rebuild --flake $DOTFILES#$HOST --fast test
# hey theme $THEME -> THEME=$THEME hey test (quick theme swapping) # hey theme $THEME -> THEME=$THEME hey test (quick theme swapping)
# hey rollback -> hey rebuild --rollback switch # hey rollback -> hey rebuild --rollback switch
# hey s|search -> nix search nixpkgs $@ # hey s|search -> nix search nixpkgs $@
@ -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 ".#$HOSTNAME" ${@:-build} _do sudo nixos-rebuild --flake ".#$HOST" ${@:-build}
popd >/dev/null popd >/dev/null
} }