Try and force no hibernate no sleep

This commit is contained in:
Sparky
2025-10-29 12:42:59 +01:00
parent 0dbdd46ffb
commit 13e8f824eb

View File

@@ -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;