refactor: do not depend on inputs for modules

This commit is contained in:
Youwen Wu 2024-12-25 22:33:04 -08:00
parent dbc5fbd875
commit 8424b025f6
Signed by: youwen
GPG key ID: 865658ED1FE61EC3
11 changed files with 87 additions and 39 deletions

View file

@ -103,6 +103,9 @@ in
)
);
services.tlp.enable = lib.mkIf (cfg.formFactor == "laptop") true;
programs.light.enable = lib.mkIf (cfg.formFactor == "laptop") true;
environment.variables.EDITOR = lib.mkIf (
cfg.defaultEditor != null
) cfg.defaultEditor.meta.mainProgram;