From d66cce9fa13bef9ab995e76da548315f0254107f Mon Sep 17 00:00:00 2001 From: Youwen Wu Date: Wed, 25 Dec 2024 22:50:58 -0800 Subject: [PATCH] fix: move tlp and light configurations to the right place --- hm/modules/linux/platform-tweaks/default.nix | 2 -- modules/linux/core/default.nix | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/hm/modules/linux/platform-tweaks/default.nix b/hm/modules/linux/platform-tweaks/default.nix index 4a389e4..f3ab7e4 100644 --- a/hm/modules/linux/platform-tweaks/default.nix +++ b/hm/modules/linux/platform-tweaks/default.nix @@ -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; diff --git a/modules/linux/core/default.nix b/modules/linux/core/default.nix index cc88d2a..ed06c1b 100644 --- a/modules/linux/core/default.nix +++ b/modules/linux/core/default.nix @@ -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;