stockholm/old/bin/nixos-query

5 lines
108 B
Bash
Executable File

#! /bin/sh
set -euf
result=$(nix-instantiate -A config."$1" --eval --json '<nixos>')
echo $result | jq -r .