summaryrefslogtreecommitdiffstats
path: root/deploy
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2015-07-07 05:55:28 +0200
committertv <tv@krebsco.de>2015-07-07 05:55:28 +0200
commit49a199abebdec4e684dfde05a358f1d55020135e (patch)
tree92f1fc881c8d85c5f303ec2a7c7f31b087e1b9df /deploy
parent45729f5a52a4172460e8ce079f604069d92efe90 (diff)
deploy: refactor to use modified/*/paths.nix
Diffstat (limited to 'deploy')
-rwxr-xr-xdeploy14
1 files changed, 6 insertions, 8 deletions
diff --git a/deploy b/deploy
index c32ba9c..a9dbf45 100755
--- a/deploy
+++ b/deploy
@@ -7,11 +7,9 @@ set -euf
system_name=$1
target=${2-root@$system_name}
-export PATH="$PWD/bin:$PATH"
-#export nixpkgs=/var/nixpkgs
-export nixpkgs_root=$PWD/tmp/nixpkgs
-export config_root=$PWD
-export retiolum_hosts=$PWD/hosts
-export secrets_root=$PWD/secrets
-
-exec nixos-deploy "$system_name" "$target"
+nix-instantiate \
+ --argstr system-name "$system_name" \
+ --argstr deploy-target "$target" \
+ --eval --json . \
+ | jq -r . \
+ | sh