diff options
author | tv <tv@shackspace.de> | 2015-06-24 20:46:25 +0200 |
---|---|---|
committer | tv <tv@shackspace.de> | 2015-06-24 20:46:25 +0200 |
commit | aaa777168e84458121f9d228b29ecd0e06e8fbf9 (patch) | |
tree | 61465a5352add50fb4ed2e2773e227abb5d23094 /bin/nixos-query | |
parent | a9aaf3c9b1c3fedbd73f4187ff41712b9d56ed41 (diff) |
there can be only one nixos-query
Diffstat (limited to 'bin/nixos-query')
-rwxr-xr-x | bin/nixos-query | 21 |
1 files changed, 2 insertions, 19 deletions
diff --git a/bin/nixos-query b/bin/nixos-query index 65b5c9672..1111aead5 100755 --- a/bin/nixos-query +++ b/bin/nixos-query @@ -1,21 +1,4 @@ #! /bin/sh set -euf - -host=$1 -attr=$2 - -nixpkgs=$nixpkgs_root/$host -nixos_config=$config_root/modules/$host -secrets_nix=$secrets_root/$host/nix -secrets_rsync=$secrets_root/$host/rsync - -nix-instantiate \ - -I "$nixpkgs" \ - -I nixos-config="$nixos_config" \ - -I retiolum-hosts="$retiolum_hosts" \ - -I secrets="$secrets_nix" \ - -A config."$attr" \ - '<nixos>' \ - --eval \ - --json \ - | jq -r . +result=$(nix-instantiate -A config."$1" --eval --json '<nixos>') +echo $result | jq -r . |