mirror of
https://github.com/nix-community/disko
synced 2024-11-10 06:14:14 +00:00
move disko.nix to example/ and add usage
This commit is contained in:
parent
db6151ff06
commit
c47d8972ad
2 changed files with 4 additions and 2 deletions
|
@ -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";
|
|
@ -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
|
Loading…
Reference in a new issue