summaryrefslogtreecommitdiffstats
path: root/deploy
diff options
context:
space:
mode:
authorlassulus <lass@aidsballs.de>2015-06-14 19:28:57 +0200
committerlassulus <lass@aidsballs.de>2015-06-14 19:28:57 +0200
commitfac851faf9f285310d26a5212ae1bcade615d45b (patch)
tree8b7cd5d2d0a232449c57046bb92846f7e323de6e /deploy
parentafa7f0b98d89c9746c204e4ee0dd79e7ae4eb23f (diff)
deploy: take optional target argument
Diffstat (limited to 'deploy')
-rwxr-xr-xdeploy6
1 files changed, 2 insertions, 4 deletions
diff --git a/deploy b/deploy
index 6034196e1..e99794ed0 100755
--- a/deploy
+++ b/deploy
@@ -1,11 +1,9 @@
#! /bin/sh
#
-# usage: ./deploy HOST
+# usage: ./deploy HOST [TARGET]
#
set -euf
-host=$1
-
export PATH="$PWD/bin:$PATH"
#export nixpkgs=/var/nixpkgs
export nixpkgs_root=$PWD/tmp/nixpkgs
@@ -13,4 +11,4 @@ export config_root=$PWD
export retiolum_hosts=$PWD/hosts
export secrets_root=$PWD/secrets
-exec nixos-deploy "$host"
+exec nixos-deploy "$@"