diff options
| author | triethyl <triethylammonium@pm.me> | 2025-10-15 09:10:07 -0400 |
|---|---|---|
| committer | triethyl <triethylammonium@pm.me> | 2025-10-15 09:10:07 -0400 |
| commit | 45d5d5d7e81df8d18907adaa2b7ddc2cc01c1bba (patch) | |
| tree | 4ee5c1f3a11cefdfd8927917e7a7b9f848f6391e /nixos/features | |
| parent | d8b63b8cb6dbc0defec3d535a8bb002e211c7fae (diff) | |
features: added tlp
Diffstat (limited to 'nixos/features')
| -rw-r--r-- | nixos/features/services/hardware/tlp.nix | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/nixos/features/services/hardware/tlp.nix b/nixos/features/services/hardware/tlp.nix new file mode 100644 index 0000000..7c114a8 --- /dev/null +++ b/nixos/features/services/hardware/tlp.nix @@ -0,0 +1,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; + }; + }; + }; +} |
