diff options
author | tmplt <tmplt@dragons.rocks> | 2020-06-16 23:42:56 +0200 |
---|---|---|
committer | tmplt <tmplt@dragons.rocks> | 2020-06-16 23:42:56 +0200 |
commit | 51e995cc055f95ee4d7d0313cc5b9a71378e5afc (patch) | |
tree | 4949e49219efcdcbfa2ff4a37e036c4d4119921a /nixos | |
parent | 084eaa498727f676e864b2b0ff504f3a74f09c98 (diff) |
nixos/physlock: add suspend-then-hibernate to suspend/hibernate units
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/security/physlock.nix | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/modules/services/security/physlock.nix b/nixos/modules/services/security/physlock.nix index 61bcd84f2e643..690eb70079d86 100644 --- a/nixos/modules/services/security/physlock.nix +++ b/nixos/modules/services/security/physlock.nix @@ -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"; |