Browse Source

add copy command

master
Yorick van Pelt 1 year ago
parent
commit
f368ec2e03
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      conf

+ 4
- 0
conf View File

@@ -47,6 +47,10 @@ case $1 in
build)
exec "$0" exec "$2" nixos-rebuild build
;;
copy)
TARGET_HOST=$(jq -r ".$2.host"<servers.json)
exec "$0" exec "$2" nixos-rebuild build --build-host localhost --target-host "$TARGET_HOST"
;;
boot)
TARGET_HOST=$(jq -r ".$2.host"<servers.json)
exec "$0" exec "$2" nixos-rebuild --build-host localhost --target-host "$TARGET_HOST" boot

Loading…
Cancel
Save