move disko.nix to example/ and add usage

This commit is contained in:
tv committed 2018-07-13 13:53:46 +02:00
1 parent db6151ff06
commit c47d8972ad
2 files changed
+4 -2

No files matched your search

+1 -1
View File
@@ -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";
+3 -1
View File
@@ -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