services.physlock: lock on suspend-then-hibernate

fixes https://github.com/NixOS/nixpkgs/issues/178478
This commit is contained in:
Bart Brouns 2025-11-04 11:12:00 +01:00
commit 6e01edcab5

View file

@ -121,6 +121,7 @@ in
wantedBy =
lib.optional cfg.lockOn.suspend "suspend.target"
++ lib.optional cfg.lockOn.hibernate "hibernate.target"
++ lib.optional (cfg.lockOn.hibernate || cfg.lockOn.suspend) "suspend-then-hibernate.target"
++ cfg.lockOn.extraTargets;
before =
lib.optional cfg.lockOn.suspend "systemd-suspend.service"