nixos-mods/improvedDefaults: add powertop-tlp
parent
ceb81dc955
commit
c86207766e
@ -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…
Reference in New Issue