summaryrefslogtreecommitdiffstats
path: root/newbin/nixos-query
diff options
context:
space:
mode:
authortv <tv@shackspace.de>2015-06-24 20:00:52 +0200
committertv <tv@shackspace.de>2015-06-24 20:00:52 +0200
commit0fa8921e803876d85e1a0d49d925c2919714ee56 (patch)
treeef5cd237fc110842e64cc3ecf889093d1f63b365 /newbin/nixos-query
parentbea25b5640e72a64605406b40f3cbcf5d0c6c9de (diff)
infest-cac-CentOS-7-64bit: fetchgit
Diffstat (limited to 'newbin/nixos-query')
-rwxr-xr-xnewbin/nixos-query8
1 files changed, 8 insertions, 0 deletions
diff --git a/newbin/nixos-query b/newbin/nixos-query
new file mode 100755
index 000000000..57761b520
--- /dev/null
+++ b/newbin/nixos-query
@@ -0,0 +1,8 @@
+#! /bin/sh
+set -euf
+nix-instantiate \
+ -A config."$1" \
+ --eval \
+ --json \
+ '<nixos>' \
+ | jq -r .