From 5e76f06b128ef185a7e32192db56908d5f168654 Mon Sep 17 00:00:00 2001 From: Shahab Dogar Date: Sun, 5 Jan 2025 08:02:12 +0500 Subject: [PATCH] feat: enable yubikey authentication for pam --- nixos/configuration.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/nixos/configuration.nix b/nixos/configuration.nix index 3b672f0..a9003e6 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -81,6 +81,9 @@ # Enable blueman services.blueman.enable = true; + # Enable smart card services + services.pcscd.enable = true; + # Enable touchpad support (enabled default in most desktopManager). # services.xserver.libinput.enable = true; @@ -108,6 +111,13 @@ security.rtkit.enable = true; + security.pam.yubico = { + enable = true; + debug = true; + mode = "challenge-response"; + id = ["24353659"]; + }; + # Define a user account. Don't forget to set a password with ‘passwd’. users.users.shahab = { shell = pkgs.zsh;