From d2f6c0eb26edf59de9c647e3019d23d6a1a7dbd6 Mon Sep 17 00:00:00 2001 From: Ashhhleyyy Date: Sat, 9 Mar 2024 14:06:11 +0000 Subject: [PATCH] feat: enable u2f login/sudo on desktops --- common/generic-desktop.nix | 5 +++++ hosts/alex/configuration.nix | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/common/generic-desktop.nix b/common/generic-desktop.nix index 8d889e1..423d33c 100644 --- a/common/generic-desktop.nix +++ b/common/generic-desktop.nix @@ -16,5 +16,10 @@ }; boot.initrd.systemd.enable = true; + security.pam.services = { + login.u2fAuth = true; + sudo.u2fAuth = true; + }; + programs.adb.enable = true; } diff --git a/hosts/alex/configuration.nix b/hosts/alex/configuration.nix index a338f03..820b34b 100644 --- a/hosts/alex/configuration.nix +++ b/hosts/alex/configuration.nix @@ -30,6 +30,11 @@ pulse.enable = true; }; + security.pam.services = { + kde.u2fAuth = true; + sddm.u2fAuth = true; + }; + services.xserver = { enable = true; # displayManager.gdm.enable = true;