diff --git a/deploy.sh b/deploy.sh new file mode 100644 index 0000000..d1b336d --- /dev/null +++ b/deploy.sh @@ -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