diff options
author | tv <tv@shackspace.de> | 2015-07-07 05:55:28 +0200 |
---|---|---|
committer | tv <tv@shackspace.de> | 2015-07-07 05:55:28 +0200 |
commit | 366373e9c6d20501e0756a7e97cced2cb96d447d (patch) | |
tree | 94d4afccec8b669ea7564fed069513807fd4ff8b /deploy | |
parent | 9c2bc5b4d0c6a87d5902eea3c3838d28dfe89a85 (diff) |
deploy: refactor to use modified/*/paths.nix
Diffstat (limited to 'deploy')
-rwxr-xr-x | deploy | 14 |
1 files changed, 6 insertions, 8 deletions
@@ -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 |