mirror of
https://github.com/nix-community/disko.git
synced 2024-08-15 01:10:28 +03:00
move disko.nix to example/ and add usage
This commit is contained in:
parent
db6151ff06
commit
c47d8972ad
@ -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 New Issue
Block a user