Try and force no hibernate no sleep
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user