move hardware key configs into one file

This commit is contained in:
Schrottkatze 2024-03-05 13:49:22 +01:00
parent 7829fcd0ce
commit ede1765ee8
Signed by: schrottkatze
SSH key fingerprint: SHA256:hXb3t1vINBFCiDCmhRABHX5ocdbLiKyCdKI4HK2Rbbc
6 changed files with 24 additions and 98 deletions

View file

@ -7,5 +7,6 @@
imports = [
./spacenav.nix
./wacom.nix
./hardware_key.nix
];
}

View file

@ -0,0 +1,20 @@
{pkgs, ...}: {
# nitrokey
services.udev.packages = [pkgs.nitrokey-udev-rules];
# smartcard daemon
services.pcscd.enable = true;
# authenticate using hw key
security.pam = {
services.jade.u2fAuth = true;
u2f = {
enable = true;
cue = true;
control = "sufficient";
authFile = "/home/jade/.ssh/u2f_keys";
};
};
programs.i3lock.u2fSupport = true;
}