11 lines
220 B
Bash
11 lines
220 B
Bash
|
#!/usr/bin/env bash
|
||
|
|
||
|
DEPLOY_HOST=$1
|
||
|
DEPLOY_ADDRESS=$2
|
||
|
|
||
|
nixos-rebuild switch \
|
||
|
--target-host=${DEPLOY_ADDRESS} \
|
||
|
--build-host=localhost \
|
||
|
-I nixos-config=hosts/${DEPLOY_HOST}/configuration.nix \
|
||
|
--use-remote-sudo
|