summaryrefslogtreecommitdiffstats
path: root/bin/new-nixos-query
diff options
context:
space:
mode:
authortv <tv@shackspace.de>2015-06-24 20:10:41 +0200
committertv <tv@shackspace.de>2015-06-24 20:11:02 +0200
commitd4ca5907d67c4f2374b6231ff03d8ed36b39ec96 (patch)
treeadaaca4d329501aeafb20d6cec6afaf81d0bdfe1 /bin/new-nixos-query
parent0fa8921e803876d85e1a0d49d925c2919714ee56 (diff)
s/nixos-fetch-git/fetchgit/
Diffstat (limited to 'bin/new-nixos-query')
-rwxr-xr-xbin/new-nixos-query8
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/new-nixos-query b/bin/new-nixos-query
new file mode 100755
index 000000000..57761b520
--- /dev/null
+++ b/bin/new-nixos-query
@@ -0,0 +1,8 @@
+#! /bin/sh
+set -euf
+nix-instantiate \
+ -A config."$1" \
+ --eval \
+ --json \
+ '<nixos>' \
+ | jq -r .