nixos/modules/services/tlp/default.nix

20 lines
395 B
Nix
Raw Normal View History

2023-05-31 22:13:56 +02:00
{ config, lib, ... }:
let
cfg = config.services.az-tlp;
in
{
2023-05-31 22:13:56 +02:00
options = {
services.az-tlp.enable = lib.mkEnableOption "Enable TLP";
};
config = lib.mkIf cfg.enable {
services.tlp = {
enable = true;
settings = {
DEVICES_TO_DISABLE_ON_STARTUP = "bluetooth wifi wwan";
DEVICES_TO_DISABLE_ON_BAT_NOT_IN_USE = "bluetooth wifi wwan";
};
};
};
}