stockholm/old/deploy

16 lines
253 B
Plaintext
Raw Normal View History

2015-04-07 20:18:11 +00:00
#! /bin/sh
#
# usage: ./deploy system_name [target]
2015-04-07 20:18:11 +00:00
#
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