nixos-mods/improvedDefaults: add powertop-tlp

secrix-issue25
Felix Stupp 3 months ago
parent ceb81dc955
commit c86207766e
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -11,6 +11,7 @@ in
imports = [
./command-not-found.nix
./powertop-tlp.nix
];

@ -0,0 +1,30 @@
{ config
, lib
, pkgs
, ...
}:
let
cfg = config.x-banananetwork.improvedDefaults;
in
{
config = lib.mkIf cfg.enable (
let
powertop = config.powerManagement.powertop;
tlp = config.services.tlp;
in
{
assertions = [
{
assertion = tlp.enable -> !powertop.enable;
message = "tlp makes powertop service useless, see https://linrunner.de/tlp/faq/powertop.html#does-powertop-conflict-with-tlp";
}
];
}
);
}
Loading…
Cancel
Save