From 8892831a0fa767edc842bd56a240ee2035258f81 Mon Sep 17 00:00:00 2001 From: sils Date: Fri, 2 Feb 2024 22:29:54 +0100 Subject: remove nix-filter input override for prismlauncher --- sys/security/pam/default.nix | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'sys/security/pam') diff --git a/sys/security/pam/default.nix b/sys/security/pam/default.nix index eef9213..ee0d843 100644 --- a/sys/security/pam/default.nix +++ b/sys/security/pam/default.nix @@ -1,3 +1,18 @@ -{...}: { - security.pam.services.swaylock = {}; +{config, ...}: { + security.pam = { + services = { + swaylock = {}; + sudo = { + u2fAuth = true; + }; + login = { + u2fAuth = true; + }; + }; + u2f = { + enable = true; + cue = true; + authFile = config.age.secrets.pamu2f-mappings.path; + }; + }; } -- cgit 1.4.1