types: pass parent node to all subTypes

This commit is contained in:
lassulus 2023-06-07 13:42:39 +02:00
parent e0179917d8
commit 62f939e213
15 changed files with 79 additions and 27 deletions

View file

@ -49,7 +49,10 @@
'';
};
datasets = lib.mkOption {
type = lib.types.attrsOf (diskoLib.subType { inherit (diskoLib.types) zfs_fs zfs_volume; });
type = lib.types.attrsOf (diskoLib.subType {
types = { inherit (diskoLib.types) zfs_fs zfs_volume; };
extraArgs.parent = config;
});
description = "List of datasets to define";
};
_meta = lib.mkOption {