Sleep changed, added headphones command.

This commit is contained in:
2025-09-23 09:49:08 +03:00
parent a98e77d41a
commit 5d15135670
8 changed files with 61 additions and 10 deletions
+5
View File
@@ -106,5 +106,10 @@
services.upower.enable = true;
programs.light.enable = true;
systemd.targets.sleep.enable = false;
systemd.targets.suspend.enable = false;
systemd.targets.hibernate.enable = false;
systemd.targets.hybrid-sleep.enable = false;
system.stateVersion = "24.11"; # Did you read the comment?
}
+10
View File
@@ -46,4 +46,14 @@
#Oh my god disable sleep on lid closed
services.logind.lidSwitchExternalPower = "ignore";
systemd.sleep.extraConfig = ''
[Sleep]
AllowSuspend=yes
AllowHibernation=no
AllowSuspendThenHibernate=no
'';
systemd.targets.sleep.enable = false;
systemd.targets.suspend.enable = false;
systemd.targets.hibernate.enable = false;
systemd.targets.hybrid-sleep.enable = false;
}