fix: move tlp and light configurations to the right place

This commit is contained in:
Youwen Wu 2024-12-25 22:50:58 -08:00
parent 4314399a1c
commit d66cce9fa1
Signed by: youwen5
GPG key ID: 865658ED1FE61EC3
2 changed files with 3 additions and 2 deletions

View file

@ -25,8 +25,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;

View file

@ -183,6 +183,9 @@ in
programs.fish.enable = true;
services.tlp.enable = lib.mkIf (cfg.formFactor == "laptop") true;
programs.light.enable = lib.mkIf (cfg.formFactor == "laptop") true;
hardware.bluetooth = lib.mkIf cfg.bluetooth.enable {
enable = true;
powerOnBoot = true;