1
0

Add simple deploy hook

This commit is contained in:
clerie 2020-12-06 16:59:11 +01:00
parent 1b9fc87e77
commit 5641b06f7b

10
deploy.sh Normal file
View File

@ -0,0 +1,10 @@
#!/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