summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorlassulus <lass@aidsballs.de>2015-06-14 19:37:30 +0200
committerlassulus <lass@aidsballs.de>2015-06-14 19:37:30 +0200
commit1d4ffccdbad2dd614fc3156cf27e68f4c0e5747c (patch)
tree47af604a4dccefbecfcb7592cfba1c348aa3b60e /bin
parentd8b6858e748a67e53ca7f650c1473a9c5d88b594 (diff)
Revert "deploy: take optional target argument"
This reverts commit 4846a8e4a8d7c9aeedafa626104a32afaf8d2ab0.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/nixos-deploy7
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/nixos-deploy b/bin/nixos-deploy
index d33e9a1..6b84186 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"