nixos/modules/services/tlp/default.nix

16 lines
387 B
Nix
Raw Normal View History

2023-05-31 22:13:56 +02:00
{ config, lib, ... }:
2024-01-01 13:14:24 +01:00
let cfg = config.services.az-tlp;
in {
options = { services.az-tlp.enable = lib.mkEnableOption "Enable TLP"; };
2023-05-31 22:13:56 +02:00
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";
};
};
};
}