Compare commits
3 Commits
2c8dd91cf0
...
761af09166
| Author | SHA1 | Date | |
|---|---|---|---|
| 761af09166 | |||
| 48d7e8a459 | |||
| d3327e05d4 |
@@ -18,18 +18,16 @@
|
|||||||
config = lib.mkIf (!config.sovran_systemsOS.roles.desktop) {
|
config = lib.mkIf (!config.sovran_systemsOS.roles.desktop) {
|
||||||
|
|
||||||
# ── Layer 1: logind hardware event handling ──────────────────────────────
|
# ── Layer 1: logind hardware event handling ──────────────────────────────
|
||||||
services.logind = {
|
services.logind.settings.Login = {
|
||||||
lidSwitch = "ignore";
|
HandleLidSwitch = "ignore";
|
||||||
lidSwitchDocked = "ignore";
|
HandleLidSwitchDocked = "ignore";
|
||||||
lidSwitchExternalPower = "ignore";
|
HandleLidSwitchExternalPower = "ignore";
|
||||||
settings.Login = {
|
|
||||||
HandleSuspendKey = "ignore";
|
HandleSuspendKey = "ignore";
|
||||||
HandleHibernateKey = "ignore";
|
HandleHibernateKey = "ignore";
|
||||||
HandlePowerKey = "ignore";
|
HandlePowerKey = "ignore";
|
||||||
IdleAction = "ignore";
|
IdleAction = "ignore";
|
||||||
IdleActionSec = 0;
|
IdleActionSec = 0;
|
||||||
};
|
};
|
||||||
};
|
|
||||||
|
|
||||||
# ── Layer 2: mask systemd sleep targets ─────────────────────────────────
|
# ── Layer 2: mask systemd sleep targets ─────────────────────────────────
|
||||||
# Nothing on the system can suspend/hibernate — not root, not GNOME, not D-Bus.
|
# 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.suspend.enable = false;
|
||||||
systemd.targets.hibernate.enable = false;
|
systemd.targets.hibernate.enable = false;
|
||||||
systemd.targets.hybrid-sleep.enable = false;
|
systemd.targets.hybrid-sleep.enable = false;
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user