summaryrefslogtreecommitdiffstats
path: root/bin/nixos-deploy
diff options
context:
space:
mode:
Diffstat (limited to 'bin/nixos-deploy')
-rwxr-xr-xbin/nixos-deploy7
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/nixos-deploy b/bin/nixos-deploy
index d33e9a1d9..6b8418696 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] Unable to lock slot /tmp/cgit/aa200000.lock: No such file or directory (2)