2024-12-29 11:32:06 +01:00
|
|
|
{ pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
environment.systemPackages = with pkgs; [
|
2025-01-05 19:14:37 +01:00
|
|
|
gnupg
|
2024-12-29 11:32:06 +01:00
|
|
|
yubioath-flutter
|
|
|
|
];
|
|
|
|
|
2025-01-05 19:14:37 +01:00
|
|
|
programs.gnupg.agent.enable = true;
|
|
|
|
|
2024-12-29 15:53:21 +01:00
|
|
|
security.pam = {
|
|
|
|
services = {
|
|
|
|
login.u2fAuth = false; # U2F and password
|
|
|
|
sudo.u2fAuth = true; # U2F or password
|
|
|
|
};
|
|
|
|
u2f = {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
|
|
|
cue = true; # Prompt: Please touch the device
|
|
|
|
interactive = false; # Prompt: Insert your U2F device, then press ENTER.
|
|
|
|
};
|
|
|
|
};
|
2024-12-29 11:32:06 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
services = {
|
2025-01-07 20:18:30 +01:00
|
|
|
pcscd.enable = true; # Required for Yubikey
|
2024-12-29 11:32:06 +01:00
|
|
|
udev.packages = with pkgs; [ yubikey-personalization ];
|
|
|
|
};
|
|
|
|
}
|