summaryrefslogtreecommitdiffstats
path: root/deploy
diff options
context:
space:
mode:
authortv <tv@shackspace.de>2015-05-21 23:52:06 +0200
committertv <tv@shackspace.de>2015-05-21 23:52:06 +0200
commitf8b1e849a6a3bd53f24a4aac70bc904cdb5ff711 (patch)
tree826235e1b776665ab32ee787bb96cd3b6f519d95 /deploy
parentac764394050f6fc39e406799085259d3fc08956a (diff)
deploy: merge next
Diffstat (limited to 'deploy')
-rwxr-xr-xdeploy16
1 files changed, 8 insertions, 8 deletions
diff --git a/deploy b/deploy
index 43021d545..6034196e1 100755
--- a/deploy
+++ b/deploy
@@ -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"