mirror of
https://github.com/Death916/nixconfig.git
synced 2026-04-10 02:54:39 -07:00
nh-push
This commit is contained in:
parent
7f10c9fca0
commit
62fcac8daf
1 changed files with 2 additions and 0 deletions
|
|
@ -28,8 +28,10 @@ echo "Building NixOS configuration..."
|
|||
# If an argument is provided, use it as the hostname with -H.
|
||||
# Otherwise, let nh autodetect the hostname.
|
||||
if [ -z "$1" ]; then
|
||||
echo "Running: nh os switch $REPO_ROOT"
|
||||
nh os switch "$REPO_ROOT"
|
||||
else
|
||||
echo "Running: nh os switch $REPO_ROOT -H $@"
|
||||
nh os switch "$REPO_ROOT" -H "$@"
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue