check type of kernel config attrsets

This commit is contained in:
Daniel Barlow 2022-09-26 12:11:26 +01:00
parent 1b1aa9de76
commit f0024dcac5

View file

@ -15,8 +15,15 @@ in {
services = mkOption {
type = types.attrsOf type_service;
};
kernel = mkOption {
type = types.anything;
kernel = {
config = mkOption {
# mostly the values are y n or m, but sometimes
# other strings are also used
type = types.attrsOf types.nonEmptyStr;
};
checkedConfig = mkOption {
type = types.attrsOf types.nonEmptyStr;
};
};
};
}