mirror of
https://forge.katzen.cafe/schrottkatze/nix-configs.git
synced 2024-11-28 23:48:44 +01:00
21 lines
399 B
Nix
21 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;
|
||
|
}
|