diff --git a/machines/jupiter/configuration.nix b/machines/jupiter/configuration.nix index d494393..9a54eaa 100644 --- a/machines/jupiter/configuration.nix +++ b/machines/jupiter/configuration.nix @@ -49,11 +49,22 @@ # Try fix wifi disconnect networking.networkmanager.wifi.powersave = false; - # Disable hibernate completely + # Disable hibernate and suspend completely - this is a headless server. + # The board exposes a phantom ACPI lid switch (PNP0C0D) that fires a + # "closed" event when the HDMI cable is unplugged, which used to trigger + # a real suspend via logind's default HandleLidSwitch=suspend. powerManagement.enable = true; systemd.targets."hibernate".enable = false; systemd.targets."hybrid-sleep".enable = false; systemd.targets."suspend-then-hibernate".enable = false; + systemd.targets."suspend".enable = false; + systemd.targets."sleep".enable = false; + + services.logind.settings.Login = { + HandleLidSwitch = "ignore"; + HandleLidSwitchExternalPower = "ignore"; + HandleLidSwitchDocked = "ignore"; + }; # Optional: kernel parameter to fully disable hibernation boot.kernelParams = [ "nohibernate" ];