2015-04-07 20:18:11 +00:00
|
|
|
#! /bin/sh
|
|
|
|
#
|
2015-06-14 18:57:19 +00:00
|
|
|
# usage: ./deploy system_name [target]
|
2015-04-07 20:18:11 +00:00
|
|
|
#
|
|
|
|
set -euf
|
|
|
|
|
2015-06-14 18:57:19 +00:00
|
|
|
system_name=$1
|
|
|
|
target=${2-root@$system_name}
|
2015-06-14 17:37:30 +00:00
|
|
|
|
2015-07-07 03:55:28 +00:00
|
|
|
nix-instantiate \
|
|
|
|
--argstr system-name "$system_name" \
|
|
|
|
--argstr deploy-target "$target" \
|
|
|
|
--eval --json . \
|
|
|
|
| jq -r . \
|
|
|
|
| sh
|