From 5336c7beb487a59e0a3de9d994379c87c438bf3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Tue, 12 Mar 2024 15:47:29 +0200 Subject: [PATCH] mtworx: add autorandr --- hosts/mtworx/configuration.nix | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/hosts/mtworx/configuration.nix b/hosts/mtworx/configuration.nix index b13cb20..5cc014b 100644 --- a/hosts/mtworx/configuration.nix +++ b/hosts/mtworx/configuration.nix @@ -122,19 +122,23 @@ in { firewall.rejectPackets = true; }; - services.tlp = { - enable = true; - settings = { - CPU_BOOST_ON_BAT = 0; - CPU_HWP_DYN_BOOST_ON_BAT = 0; - CPU_SCALING_GOVERNOR_ON_AC = "performance"; - CPU_SCALING_GOVERNOR_ON_BAT = "powersave"; - CPU_ENERGY_PERF_POLICY_ON_AC = "performance"; - CPU_ENERGY_PERF_POLICY_ON_BAT = "power"; - PLATFORM_PROFILE_ON_BAT = "low-power"; - START_CHARGE_THRESH_BAT1 = 80; - STOP_CHARGE_THRESH_BAT1 = 87; - RUNTIME_PM_ON_BAT = "auto"; + services = { + autorandr.enable = true; + + tlp = { + enable = true; + settings = { + CPU_BOOST_ON_BAT = 0; + CPU_HWP_DYN_BOOST_ON_BAT = 0; + CPU_SCALING_GOVERNOR_ON_AC = "performance"; + CPU_SCALING_GOVERNOR_ON_BAT = "powersave"; + CPU_ENERGY_PERF_POLICY_ON_AC = "performance"; + CPU_ENERGY_PERF_POLICY_ON_BAT = "power"; + PLATFORM_PROFILE_ON_BAT = "low-power"; + START_CHARGE_THRESH_BAT1 = 80; + STOP_CHARGE_THRESH_BAT1 = 87; + RUNTIME_PM_ON_BAT = "auto"; + }; }; }; }