Add simple deploy hook
This commit is contained in:
parent
1b9fc87e77
commit
5641b06f7b
10
deploy.sh
Normal file
10
deploy.sh
Normal 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
|
Loading…
x
Reference in New Issue
Block a user