disko/default.nix

22 lines
643 B
Nix
Raw Normal View History

{ lib ? import <nixpkgs/lib> }:
2022-08-24 20:24:33 +00:00
let
types = import ./types.nix { inherit lib; };
eval = cfg: lib.evalModules {
modules = lib.singleton {
# _file = toString input;
imports = lib.singleton { devices = cfg; };
options = {
devices = lib.mkOption {
type = types.devices;
};
};
2022-08-25 13:08:26 +00:00
};
};
in {
types = types;
create = cfg: types.diskoLib.create (eval cfg).config.devices;
mount = cfg: types.diskoLib.mount (eval cfg).config.devices;
2022-10-23 09:30:08 +00:00
config = cfg: { imports = types.diskoLib.config (eval cfg).config.devices; };
packages = cfg: types.diskoLib.packages (eval cfg).config.devices;
2018-09-11 18:52:12 +00:00
}