From de6811f14dddf62de03c840aa07b982f6962fb38 Mon Sep 17 00:00:00 2001 From: Alvar Penning Date: Sat, 31 Oct 2020 15:59:40 +0100 Subject: [PATCH] lenovo/thinkpad/x260: use services.tlp.settings With switching from NixOS 20.03 to 20.09, the services.tlp.extraConfig option became deprecated and was replaced by services.tlp.settings. The ThinkPad X260 is only device within nixos-hardware which makes use of this configuration. --- lenovo/thinkpad/x260/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lenovo/thinkpad/x260/default.nix b/lenovo/thinkpad/x260/default.nix index d64a530..1172ab1 100644 --- a/lenovo/thinkpad/x260/default.nix +++ b/lenovo/thinkpad/x260/default.nix @@ -6,7 +6,7 @@ ]; # https://wiki.archlinux.org/index.php/TLP#Btrfs - services.tlp.extraConfig = '' - SATA_LINKPWR_ON_BAT=med_power_with_dipm - ''; + services.tlp.settings = { + SATA_LINKPWR_ON_BAT = "med_power_with_dipm"; + }; }