summaryrefslogtreecommitdiffstats
path: root/deploy
blob: 03a20017565b15a603d6333619dd3eda7e92395e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#! /bin/sh
#
# usage: ./deploy HOST [[USER@]HOST]
#
set -euf

. ./lib/prelude.sh

user=root
host=$1

config=./modules/$host/default.nix
target=${2-$user@$host}

verbose deploy "$config" "$target"