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