diff options
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 65b5c96..1111aea 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 . |