summaryrefslogtreecommitdiff
path: root/nixos/features/services/hardware/tlp.nix
blob: 018fc1110ae2136d28f2a58979476837d06bca37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
{ config, lib, ... }: let
  cfg = config.features.services.hardware.tlp;
in {
  options.features.services.hardware.tlp.enable = lib.mkEnableOption "tlp";
  config = lib.mkIf cfg.enable {
    services.tlp = {
      enable = true;
      settings = {
        USB_AUTOSUSPEND = 0;
      };
    };
  };
}