mirror of
https://github.com/TECHNOFAB11/disko.git
synced 2026-02-02 09:25:08 +01:00
lib: read types from subdir
This commit is contained in:
parent
22b33a4fd6
commit
1c31612335
17 changed files with 10 additions and 19 deletions
|
|
@ -337,25 +337,16 @@ let
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
types = lib.mapAttrs (_: diskoLib.mkSubType) {
|
# import all tge types from the types directory
|
||||||
nodev = ./nodev.nix;
|
types = lib.listToAttrs (
|
||||||
btrfs = ./btrfs.nix;
|
map
|
||||||
btrfs_subvol = ./btrfs_subvol.nix;
|
(file: lib.nameValuePair
|
||||||
filesystem = ./filesystem.nix;
|
(lib.removeSuffix ".nix" file)
|
||||||
table = ./table.nix;
|
(diskoLib.mkSubType ./types/${file})
|
||||||
swap = ./swap.nix;
|
)
|
||||||
lvm_pv = ./lvm_pv.nix;
|
(lib.attrNames (builtins.readDir ./types))
|
||||||
lvm_vg = ./lvm_vg.nix;
|
);
|
||||||
zfs = ./zfs.nix;
|
|
||||||
zpool = ./zpool.nix;
|
|
||||||
zfs_dataset = ./zfs_dataset.nix;
|
|
||||||
zfs_fs = ./zfs_fs.nix;
|
|
||||||
zfs_volume = ./zfs_volume.nix;
|
|
||||||
mdadm = ./mdadm.nix;
|
|
||||||
mdraid = ./mdraid.nix;
|
|
||||||
luks = ./luks.nix;
|
|
||||||
disk = ./disk.nix;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
diskoLib
|
diskoLib
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue