Compare commits

..

6 commits

Author SHA1 Message Date
Alejandro Soto c1d742a383
modules/thinkpad: initial commit 2025-08-06 14:33:08 -06:00
Alejandro Soto f007e55e5f
doctrine/lib: add optional prefix/namespace args to mkModule 2025-08-06 14:33:08 -06:00
Alejandro Soto 8a7c4f302c
doctrine/lib: support module dependencies 2025-08-06 14:33:08 -06:00
Alejandro Soto e05a1ba575
modules/laptop: initial commit 2025-08-06 14:33:08 -06:00
Alejandro Soto f4ed58067e
doctrine/lib: rename importAll.nix -> import-all.nix 2025-08-06 14:33:08 -06:00
Alejandro Soto c435223641
doctrine/lib: refactor 'close' helper 2025-08-06 14:33:07 -06:00

View file

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