diff options
Diffstat (limited to 'bin/nixos-deploy')
-rwxr-xr-x | bin/nixos-deploy | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/bin/nixos-deploy b/bin/nixos-deploy index 6b84186..d33e9a1 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" |