services.physlock: lock on suspend-then-hibernate
fixes https://github.com/NixOS/nixpkgs/issues/178478
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user