summaryrefslogtreecommitdiff
path: root/nixos/features/services
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/features/services')
-rw-r--r--nixos/features/services/hardware/tlp.nix13
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;
+ };
+ };
+ };
+}