blob: a9dbf45e0e199df4884a2a7e875a29a81151e071 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#! /bin/sh
#
# usage: ./deploy system_name [target]
#
set -euf
system_name=$1
target=${2-root@$system_name}
nix-instantiate \
--argstr system-name "$system_name" \
--argstr deploy-target "$target" \
--eval --json . \
| jq -r . \
| sh
|