mirror of
https://forge.katzen.cafe/schrottkatze/nix-configs.git
synced 2024-12-23 01:35:51 +01:00
20 lines
399 B
Nix
20 lines
399 B
Nix
{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;
|
|
}
|