From afc4834723e6d8690ff83b36dc80f9c5deb2e193 Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Fri, 31 Dec 2021 23:52:40 +0000 Subject: [PATCH] porcorosso: enable TLP for battery saving in laptop mode --- ops/nixos/porcorosso/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ops/nixos/porcorosso/default.nix b/ops/nixos/porcorosso/default.nix index 20f795ae3f..2aa8a2e9d9 100644 --- a/ops/nixos/porcorosso/default.nix +++ b/ops/nixos/porcorosso/default.nix @@ -320,6 +320,14 @@ in { mandatoryFeatures = [ ]; }]; + services.tlp = { + enable = true; + settings = { + DISK_DEVICES = "nvme0n1 nvme1n1 nvme2n1"; + DISK_IOSCHED = "mq-deadline mq-deadline mq-deadline"; + }; + }; + # This value determines the NixOS release with which your system is to be # compatible, in order to avoid breaking some software such as database # servers. You should change this only after NixOS release notes say you