Compare commits

..

6 commits

Author SHA1 Message Date
Alejandro Soto a69723cf87
modules/thinkpad: initial commit 2025-08-06 14:37:49 -06:00
Alejandro Soto 4a7e6f545c
doctrine/lib: add optional prefix/namespace args to mkModule 2025-08-06 14:37:47 -06:00
Alejandro Soto 3121013376
doctrine/lib: support module dependencies 2025-08-06 14:36:55 -06:00
Alejandro Soto 3152a0f626
modules/laptop: initial commit 2025-08-06 14:36:55 -06:00
Alejandro Soto 8cc6c13cf5
doctrine/lib: rename importAll.nix -> import-all.nix 2025-08-06 14:36:55 -06:00
Alejandro Soto 2fe1f36eb9
doctrine/lib: refactor 'close' helper 2025-08-06 14:36:53 -06:00

View file

@ -40,13 +40,9 @@ in {
} }
])); ]));
options = lib.optionalAttrs (options options.${prefix}.${name} =
!= null lib.optionalAttrs (options != null && optionsSet ? ${namespace}) optionsSet.${namespace}
&& optionsSet ? ${namespace}) { // {
${prefix}.${name} = enable = lib.mkEnableOption name;
optionsSet.${namespace} };
// {
enable = lib.mkEnableOption name;
};
};
} }