From fac851faf9f285310d26a5212ae1bcade615d45b Mon Sep 17 00:00:00 2001 From: lassulus Date: Sun, 14 Jun 2015 19:28:57 +0200 Subject: deploy: take optional target argument --- bin/nixos-deploy | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'bin') diff --git a/bin/nixos-deploy b/bin/nixos-deploy index 6b8418696..d33e9a1d9 100755 --- a/bin/nixos-deploy +++ b/bin/nixos-deploy @@ -1,13 +1,12 @@ #! /bin/sh # -# deploy +# usage: nixos-deploy HOST [TARGET] [SYSTEM] # set -euf host=$1 -system=${2-$(nixos-build "$host")} - -target=root@$host +target=${2-root@$host} +system=${3-$(nixos-build "$host")} nix-copy-closure --gzip --to "$target" "$system" -- cgit v1.2.3