mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
services.physlock: lock on suspend-then-hibernate
fixes https://github.com/NixOS/nixpkgs/issues/178478
This commit is contained in:
parent
9a8b37a0d4
commit
6e01edcab5
1 changed files with 1 additions and 0 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue