From d60f2d26a7e33df20b53e97f1773d7c338fb7a85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vili=20Sinerv=C3=A4?= Date: Thu, 21 Nov 2024 14:13:39 +0200 Subject: [PATCH] Enable TLP --- machine-confs/helium.nix | 2 ++ machine-confs/lithium.nix | 2 ++ 2 files changed, 4 insertions(+) diff --git a/machine-confs/helium.nix b/machine-confs/helium.nix index 9966dab..e006456 100644 --- a/machine-confs/helium.nix +++ b/machine-confs/helium.nix @@ -79,6 +79,8 @@ ../hardware-specific/usb-automount.nix ]; + services.tlp.enable = true; + services.xserver.displayManager.setupCommands = '' ${pkgs.xorg.xrandr}/bin/xrandr --output DisplayPort-0 --auto --pos 0x0 --primary --output eDP --auto --pos 3840x360 ''; diff --git a/machine-confs/lithium.nix b/machine-confs/lithium.nix index b8e8c45..9c0b5c5 100644 --- a/machine-confs/lithium.nix +++ b/machine-confs/lithium.nix @@ -59,6 +59,8 @@ ../hardware-specific/usb-automount.nix ]; + services.tlp.enable = true; + system.autoUpgrade.allowReboot = pkgs.lib.mkForce false; swapDevices = pkgs.lib.mkForce [