This commit is contained in:
mrfluffy-dev
2025-10-13 16:59:11 +01:00
parent d04259ac3d
commit d197e054dd
5 changed files with 38 additions and 38 deletions

View File

@@ -84,10 +84,10 @@
};
# Laptop-specific lid and sleep behavior
services.logind = lib.mkIf (systemName == "laptop") {
lidSwitch = "suspend-then-hibernate";
lidSwitchExternalPower = "suspend-then-hibernate";
lidSwitchDocked = "suspend-then-hibernate";
services.logind.settings.Login = lib.mkIf (systemName == "laptop") {
HandleLidSwitch = "suspend-then-hibernate";
HandleLidSwitchExternalPower = "suspend-then-hibernate";
HandleLidSwitchDocked = "suspend-then-hibernate";
};
systemd.sleep.extraConfig = lib.mkIf (systemName == "laptop") ''