diff options
author | Silvan Mosberger <contact@infinisil.com> | 2020-06-17 18:06:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-17 18:06:52 +0200 |
commit | f03e85f703b132a2574842bef5bb8d4c6a418be4 (patch) | |
tree | 39b96096ac63c954eb388fdc76cbec5f90cc34d0 /nixos | |
parent | 4ddf9b763bd764c4338c05cabdf8e94d0e56065a (diff) | |
parent | 51e995cc055f95ee4d7d0313cc5b9a71378e5afc (diff) |
Merge pull request #74589 from tmplt/fix-physlock
nixos/physlock: add suspend-then-hibernate to lockOn.suspend 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"; |