From 6e01edcab52d2ef0d5755f6c5d5350046a780cf4 Mon Sep 17 00:00:00 2001 From: Bart Brouns Date: Tue, 4 Nov 2025 11:12:00 +0100 Subject: [PATCH] services.physlock: lock on suspend-then-hibernate fixes https://github.com/NixOS/nixpkgs/issues/178478 --- nixos/modules/services/security/physlock.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/services/security/physlock.nix b/nixos/modules/services/security/physlock.nix index a5674f75f1bf..04f86fbe0110 100644 --- a/nixos/modules/services/security/physlock.nix +++ b/nixos/modules/services/security/physlock.nix @@ -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"