diff --git a/options/desktop/yubikey.nix b/options/desktop/yubikey.nix index 080c497..942e484 100644 --- a/options/desktop/yubikey.nix +++ b/options/desktop/yubikey.nix @@ -1,20 +1,8 @@ -{ - pkgs, - ... -}: { +_: { security.pam = { services = { login.u2fAuth = true; sudo.u2fAuth = true; }; }; - - services.udev.extraRules = '' - ACTION=="remove",\ - ENV{ID_BUS}=="usb",\ - ENV{ID_MODEL_ID}=="0407",\ - ENV{ID_VENDOR_ID}=="1050",\ - ENV{ID_VENDOR}=="Yubico",\ - RUN+="${pkgs.systemd}/bin/loginctl lock-sessions" - ''; }