#!/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