Merge pull request #74589 from tmplt/fix-physlock

nixos/physlock: add suspend-then-hibernate to lockOn.suspend units
This commit is contained in:
Silvan Mosberger 2020-06-17 18:06:52 +02:00 committed by GitHub
commit f03e85f703
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -107,6 +107,7 @@ in
++ cfg.lockOn.extraTargets;
before = optional cfg.lockOn.suspend "systemd-suspend.service"
++ optional cfg.lockOn.hibernate "systemd-hibernate.service"
++ optional (cfg.lockOn.hibernate || cfg.lockOn.suspend) "systemd-suspend-then-hibernate.service"
++ cfg.lockOn.extraTargets;
serviceConfig = {
Type = "forking";