mirror of
https://github.com/nix-community/disko.git
synced 2024-11-04 05:44:29 +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";
|
type = "table";
|
||||||
format = "gpt";
|
format = "gpt";
|
@ -1,3 +1,5 @@
|
|||||||
|
# usage: nix-instantiate --eval --json --strict example | jq -r .
|
||||||
|
|
||||||
with import <nixpkgs/lib>;
|
with import <nixpkgs/lib>;
|
||||||
with builtins;
|
with builtins;
|
||||||
|
|
||||||
@ -47,6 +49,6 @@ let
|
|||||||
f = q: x: fun.${x.type} q x;
|
f = q: x: fun.${x.type} q x;
|
||||||
|
|
||||||
q0.device = "/dev/sda";
|
q0.device = "/dev/sda";
|
||||||
x0 = import ./example.nix;
|
x0 = import ./config.nix;
|
||||||
in
|
in
|
||||||
f q0 x0
|
f q0 x0
|
Loading…
Reference in New Issue
Block a user