Fix deprecated logind lid switch options in no-sleep module
Agent-Logs-Url: https://github.com/naturallaw777/staging_alpha/sessions/8a4eee86-6cb7-411d-9e71-1bcfae42374e Co-authored-by: naturallaw777 <99053422+naturallaw777@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
d3327e05d4
commit
48d7e8a459
@@ -18,18 +18,16 @@
|
||||
config = lib.mkIf (!config.sovran_systemsOS.roles.desktop) {
|
||||
|
||||
# ── Layer 1: logind hardware event handling ──────────────────────────────
|
||||
services.logind = {
|
||||
lidSwitch = "ignore";
|
||||
lidSwitchDocked = "ignore";
|
||||
lidSwitchExternalPower = "ignore";
|
||||
settings.Login = {
|
||||
services.logind.settings.Login = {
|
||||
HandleLidSwitch = "ignore";
|
||||
HandleLidSwitchDocked = "ignore";
|
||||
HandleLidSwitchExternalPower = "ignore";
|
||||
HandleSuspendKey = "ignore";
|
||||
HandleHibernateKey = "ignore";
|
||||
HandlePowerKey = "ignore";
|
||||
IdleAction = "ignore";
|
||||
IdleActionSec = 0;
|
||||
};
|
||||
};
|
||||
|
||||
# ── Layer 2: mask systemd sleep targets ─────────────────────────────────
|
||||
# Nothing on the system can suspend/hibernate — not root, not GNOME, not D-Bus.
|
||||
@@ -37,5 +35,6 @@
|
||||
systemd.targets.suspend.enable = false;
|
||||
systemd.targets.hibernate.enable = false;
|
||||
systemd.targets.hybrid-sleep.enable = false;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user