move disko.nix to example/ and add usage

This commit is contained in:
tv 2018-07-13 13:52:22 +02:00
parent db6151ff06
commit c47d8972ad
2 changed files with 4 additions and 2 deletions

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";

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