2015-04-07 20:18:11 +00:00
|
|
|
#! /bin/sh
|
|
|
|
#
|
2015-05-21 21:52:06 +00:00
|
|
|
# usage: ./deploy HOST
|
2015-04-07 20:18:11 +00:00
|
|
|
#
|
|
|
|
set -euf
|
|
|
|
|
|
|
|
host=$1
|
|
|
|
|
2015-05-21 21:52:06 +00:00
|
|
|
export PATH="$PWD/bin:$PATH"
|
|
|
|
#export nixpkgs=/var/nixpkgs
|
|
|
|
export nixpkgs_root=$PWD/tmp/nixpkgs
|
|
|
|
export config_root=$PWD
|
|
|
|
export retiolum_hosts=$PWD/hosts
|
|
|
|
export secrets_root=$PWD/secrets
|
2015-04-07 20:18:11 +00:00
|
|
|
|
2015-05-21 21:52:06 +00:00
|
|
|
exec nixos-deploy "$host"
|