summaryrefslogtreecommitdiff
path: root/nixos/features/services/hardware/tlp.nix
blob: 7c114a8e92b8d1c09b0ca39f610aeafb1c51ff80 (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.enable = lib.mkEnableOption "tlp";
  config = lib.mkIf cfg.enable {
    services.tlp = {
      enable = true;
      settings = {
        USB_AUTOSUSPEND = 0;
      };
    };
  };
}