mirror of
https://github.com/TECHNOFAB11/disko.git
synced 2026-02-02 09:25:08 +01:00
export config list in types
This commit is contained in:
parent
5aa3ebcb99
commit
3c4cc93007
2 changed files with 2 additions and 4 deletions
|
|
@ -16,6 +16,6 @@ in {
|
||||||
types = types;
|
types = types;
|
||||||
create = cfg: types.diskoLib.create (eval cfg).config.devices;
|
create = cfg: types.diskoLib.create (eval cfg).config.devices;
|
||||||
mount = cfg: types.diskoLib.mount (eval cfg).config.devices;
|
mount = cfg: types.diskoLib.mount (eval cfg).config.devices;
|
||||||
config = cfg: types.diskoLib.config (eval cfg).config.devices;
|
config = cfg: { imports = types.diskoLib.config (eval cfg).config.devices; };
|
||||||
packages = cfg: types.diskoLib.packages (eval cfg).config.devices;
|
packages = cfg: types.diskoLib.packages (eval cfg).config.devices;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -156,9 +156,7 @@ rec {
|
||||||
|
|
||||||
config :: types.devices -> nixosConfig
|
config :: types.devices -> nixosConfig
|
||||||
*/
|
*/
|
||||||
config = devices: {
|
config = devices: flatten (map (dev: dev._config) (flatten (map attrValues (attrValues devices))));
|
||||||
imports = flatten (map (dev: dev._config) (flatten (map attrValues (attrValues devices))));
|
|
||||||
};
|
|
||||||
/* Takes a disko device specification and returns a function to get the needed packages to format/mount the disks
|
/* Takes a disko device specification and returns a function to get the needed packages to format/mount the disks
|
||||||
|
|
||||||
packages :: types.devices -> pkgs -> [ derivation ]
|
packages :: types.devices -> pkgs -> [ derivation ]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue