From 62683d5ab413cac3dfa2045e50363d7abbd7fb9a Mon Sep 17 00:00:00 2001 From: Fabian Hauser Date: Fri, 12 Jul 2024 12:13:40 +0200 Subject: [PATCH] Make swaylock accept passwords as well --- defaults/desktop/security.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/defaults/desktop/security.nix b/defaults/desktop/security.nix index 65d5bcc..a37dbed 100644 --- a/defaults/desktop/security.nix +++ b/defaults/desktop/security.nix @@ -7,4 +7,10 @@ { services.pcscd.enable = true; + + # Make pam accept both password and fingerprint + security.pam.services.swaylock.rules.auth = { + fprintd.order = 11600; + unix.args = [ "nullok" ]; + }; }