diff options
| author | Alejandro Soto <alejandro@34project.org> | 2025-08-06 13:58:07 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2025-08-06 14:36:53 -0600 |
| commit | f2bffec80259b1a7902bd91166f4982edc9dc363 (patch) | |
| tree | 70fcbdee29f09b88328156d75837e66b798ff639 /doctrine/lib/mk-module.nix | |
| parent | 6ddf84ec76f32d4e7f7bfbfbcb2595449055c7ac (diff) | |
doctrine/lib: refactor 'close' helper
Diffstat (limited to 'doctrine/lib/mk-module.nix')
| -rw-r--r-- | doctrine/lib/mk-module.nix | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/doctrine/lib/mk-module.nix b/doctrine/lib/mk-module.nix index 79c24c5..c8b810d 100644 --- a/doctrine/lib/mk-module.nix +++ b/doctrine/lib/mk-module.nix @@ -26,13 +26,9 @@ in { lib.optionalAttrs (configFiles ? ${doctrine.namespace}) (lib.mkIf cfg.enable configSet); - options = lib.optionalAttrs (options - != null - && optionsSet ? ${doctrine.namespace}) { - ${doctrine.prefix}.${name} = - optionsSet.${doctrine.namespace} - // { - enable = lib.mkEnableOption name; - }; - }; + options.${doctrine.prefix}.${name} = + lib.optionalAttrs (options != null && optionsSet ? ${doctrine.namespace}) optionsSet.${doctrine.namespace} + // { + enable = lib.mkEnableOption name; + }; } |
