From 4d97821492dbddb6570756ccf5bc3fe34f86b052 Mon Sep 17 00:00:00 2001 From: wo2wz <189177184+wo2wz@users.noreply.github.com> Date: Wed, 22 Oct 2025 22:40:14 -0400 Subject: [PATCH] yubikey: remove unnecessary conditional and add u2f settings --- modules/nixos/system/yubikey.nix | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/modules/nixos/system/yubikey.nix b/modules/nixos/system/yubikey.nix index 54f5150..1f99331 100755 --- a/modules/nixos/system/yubikey.nix +++ b/modules/nixos/system/yubikey.nix @@ -2,8 +2,15 @@ { # enable yubikey u2f for use with pam - security.pam.services = { - sudo.u2fAuth = true; - polkit-1.u2fAuth = if config.services.desktopManager.plasma6.enable then true else false; + security.pam = { + services = { + sudo.u2fAuth = true; + polkit-1.u2fAuth = true; + }; + + u2f.settings = { + authfile = "/etc/Yubico/u2f_keys"; + cue = true; + }; }; } \ No newline at end of file