liminix

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit f0024dcac5201f13144d44a5df78e0f51d2d03db
parent 1b1aa9de76d9ea504a10931b15d24757ba6d2a72
Author: Daniel Barlow <dan@telent.net>
Date:   Mon, 26 Sep 2022 12:11:26 +0100

check type of kernel config attrsets

Diffstat:
Mmodules/base.nix | 11+++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/modules/base.nix b/modules/base.nix @@ -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; + }; }; }; }