diff options
author | tv <tv@shackspace.de> | 2015-05-21 23:52:06 +0200 |
---|---|---|
committer | tv <tv@shackspace.de> | 2015-05-21 23:52:06 +0200 |
commit | f8b1e849a6a3bd53f24a4aac70bc904cdb5ff711 (patch) | |
tree | 826235e1b776665ab32ee787bb96cd3b6f519d95 /deploy | |
parent | ac764394050f6fc39e406799085259d3fc08956a (diff) |
deploy: merge next
Diffstat (limited to 'deploy')
-rwxr-xr-x | deploy | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -1,16 +1,16 @@ #! /bin/sh # -# usage: ./deploy HOST [[USER@]HOST] +# usage: ./deploy HOST # set -euf -PATH="$PWD/bin${PATH+:$PATH}" -export PATH - -user=root host=$1 -config=./modules/$host/default.nix -target=${2-$user@$host} +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 -exec ssh-deploy "$config" "$target" +exec nixos-deploy "$host" |