nixos/physlock: add suspend-then-hibernate to suspend/hibernate units

This commit is contained in:
tmplt 2020-06-16 23:42:56 +02:00
parent 084eaa4987
commit 51e995cc05

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";