add copy command
parent
926e9f6960
commit
f368ec2e03
4
conf
4
conf
|
@ -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…
Reference in New Issue