aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--example/config.nix (renamed from example.nix)2
-rw-r--r--example/default.nix (renamed from disko.nix)4
2 files changed, 4 insertions, 2 deletions
diff --git a/example.nix b/example/config.nix
index 38830b6..e9766fe 100644
--- a/example.nix
+++ b/example/config.nix
@@ -1,4 +1,4 @@
-# nix-instantiate --strict --json --eval format.nix | jq
+# usage: nix-instantiate --eval --json --strict example/config.nix | jq .
{
type = "table";
format = "gpt";
diff --git a/disko.nix b/example/default.nix
index 2e6805a..69ef936 100644
--- a/disko.nix
+++ b/example/default.nix
@@ -1,3 +1,5 @@
+# usage: nix-instantiate --eval --json --strict example | jq -r .
+
with import <nixpkgs/lib>;
with builtins;
@@ -47,6 +49,6 @@ let
f = q: x: fun.${x.type} q x;
q0.device = "/dev/sda";
- x0 = import ./example.nix;
+ x0 = import ./config.nix;
in
f q0 x0