From da2eebf5d54ad3e1a31b64acf23324889a41d1d7 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 26 Oct 2020 05:47:31 -0400 Subject: [PATCH] Fix $HOST references $HOSTNAME won't be set. $HOST will. --- bin/hey | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/hey b/bin/hey index 17b9848f..5b3af40c 100755 --- a/bin/hey +++ b/bin/hey @@ -8,8 +8,8 @@ # hey cd|check -> nix flake check $DOTFILES # hey sh|show -> nix flake show $DOTFILES # hey u|update -> nix flake update --recreate-lock-file $DOTFILES -# hey re|rebuild -> nixos-rebuild --flake $DOTFILES#$HOSTNAME ${1:-build} -# hey t|test -> nixos-rebuild --flake $DOTFILES#$HOSTNAME --fast test +# hey re|rebuild -> nixos-rebuild --flake $DOTFILES#$HOST ${1:-build} +# hey t|test -> nixos-rebuild --flake $DOTFILES#$HOST --fast test # hey theme $THEME -> THEME=$THEME hey test (quick theme swapping) # hey rollback -> hey rebuild --rollback switch # hey s|search -> nix search nixpkgs $@ @@ -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 ".#$HOSTNAME" ${@:-build} + _do sudo nixos-rebuild --flake ".#$HOST" ${@:-build} popd >/dev/null }