From 0421bb5504c76352dc3b2bf491dbc97980336f29 Mon Sep 17 00:00:00 2001 From: Hunter Date: Wed, 3 Dec 2025 20:09:55 -0500 Subject: [PATCH] power profiles --- sw.nix | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/sw.nix b/sw.nix index 72dfb6b..c292584 100644 --- a/sw.nix +++ b/sw.nix @@ -63,10 +63,6 @@ enableSSHSupport = true; }; - # Power - services.tlp.enable = true; - services.auto-cpufreq.enable = true; - # Bluetooth hardware.bluetooth.enable = true; services.blueman.enable = true; @@ -92,10 +88,13 @@ # Suspend / logind behavior services.upower.enable = true; services.logind.lidSwitch = "suspend"; - services.logind.extraConfig = '' - HandleLidSwitchExternalPower=suspend - HandleLidSwitchDocked=ignore - ''; + services.logind.settings = { + Login = { + HandleLidSwitch = "suspend"; + HandleLidSwitchExternalPower = "suspend"; + HandleLidSwitchDocked = "ignore"; + }; + }; # Enable the OpenSSH daemon. services.openssh.enable = true;