feat: add option for services.tlp.settings with defaults

This commit is contained in:
Jacob Bachmann 2024-09-05 18:39:46 +02:00
parent ad7f6bf039
commit 2c09c21833
Signed by: bchmnn
GPG key ID: 732A612DAD28067D
3 changed files with 48 additions and 6 deletions

View file

@ -5,12 +5,7 @@
services.tlp = {
enable = !builtins.elem "gnome" gui.flavour;
settings = {
CPU_ENERGY_PERF_POLICY_ON_AC = "performance";
CPU_ENERGY_PERF_POLICY_ON_BAT = "balance_power";
PLATFORM_PROFILE_ON_AC = "performance";
PLATFORM_PROFILE_ON_BAT = "balanced";
};
settings = power.tlp.settings;
};
environment.systemPackages = with pkgs; [