This commit is contained in:
Till 2026-04-12 18:48:42 +02:00
parent e945735fa1
commit b4b1f4a63f
36 changed files with 716 additions and 94 deletions

View file

@ -11,18 +11,18 @@
services.udev = {
packages = [ pkgs.yubikey-personalization ];
# 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"
# '';
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"
'';
};
# security.pam.services = {
# login.u2fAuth = true;
# sudo.u2fAuth = true;
# };
security.pam.services = {
login.u2fAuth = true;
sudo.u2fAuth = true;
};
}