1
0
nixfiles/deploy.sh

11 lines
220 B
Bash
Raw Normal View History

2020-12-06 16:59:11 +01:00
#!/usr/bin/env bash
DEPLOY_HOST=$1
DEPLOY_ADDRESS=$2
nixos-rebuild switch \
-I nixos-config=hosts/${DEPLOY_HOST}/configuration.nix \
2020-12-06 18:03:45 +01:00
--target-host ${DEPLOY_ADDRESS} \
--build-host localhost \
2020-12-06 16:59:11 +01:00
--use-remote-sudo