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

@ -1,5 +1,4 @@
{
inputs,
lib,
config,
osConfig,
@ -25,8 +24,6 @@ in
};
config = {
services.tlp.enable = lib.mkIf (cfg.formFactor == "laptop") true;
programs.light.enable = lib.mkIf (cfg.formFactor == "laptop") true;
assertions = [
{
assertion = cfg.formFactor != null;