From 13e8f824ebed237957636ba1b5e89bee941a5ff3 Mon Sep 17 00:00:00 2001 From: Sparky Date: Wed, 29 Oct 2025 12:42:59 +0100 Subject: [PATCH] Try and force no hibernate no sleep --- configuration.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/configuration.nix b/configuration.nix index 472770e..53616e7 100644 --- a/configuration.nix +++ b/configuration.nix @@ -182,6 +182,25 @@ in openFirewall = true; }; + systemd.sleep.extraConfig = '' + AllowSuspend=no + AllowHibernation=no + AllowSuspendThenHibernate=no + AllowHybridSleep=no + ''; + + services.logind = { + lidSwitch = "ignore"; + lidSwitchExternalPower = "ignore"; + extraConfig = '' + HandlePowerKey=ignore + HandleSuspendKey=ignore + HandleHibernateKey=ignore + HandleLidSwitch=ignore + HandleLidSwitchExternalPower=ignore + ''; + }; + programs.firefox.enable = true; programs.steam.enable = true;