1
0
Fork 0
nixfiles/deploy.sh

11 lines
220 B
Bash
Executable File

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