2024-10-11 23:27:07 +03:00
|
|
|
{ pkgs, ... }:
|
|
|
|
{
|
|
|
|
# GPG.
|
|
|
|
services.udev.packages = [ pkgs.yubikey-personalization ];
|
2024-04-09 14:14:28 +03:00
|
|
|
|
2024-10-11 23:27:07 +03:00
|
|
|
programs.gnupg.agent = {
|
|
|
|
enable = true;
|
|
|
|
enableSSHSupport = true;
|
|
|
|
pinentryPackage = pkgs.pinentry-tty;
|
|
|
|
};
|
2024-04-09 14:14:28 +03:00
|
|
|
|
2024-10-11 23:27:07 +03:00
|
|
|
# PCSC.
|
|
|
|
services.pcscd.enable = true;
|
2024-04-09 16:47:03 +03:00
|
|
|
|
2024-10-11 23:27:07 +03:00
|
|
|
# Yubikey touch notification.
|
|
|
|
# ISSUE: Not working on Sway with Mako for some reason.
|
|
|
|
programs.yubikey-touch-detector.enable = true;
|
2024-04-09 16:47:03 +03:00
|
|
|
|
2024-10-11 23:27:07 +03:00
|
|
|
environment.systemPackages = with pkgs; [
|
2024-10-28 12:57:02 +03:00
|
|
|
libfido2
|
2024-10-11 23:27:07 +03:00
|
|
|
yubikey-manager
|
|
|
|
# yubioath-desktop # OTP.
|
|
|
|
];
|
2024-04-09 14:26:36 +03:00
|
|
|
|
2024-10-11 23:27:07 +03:00
|
|
|
# Store GPG data on tmpfs.
|
|
|
|
# environment.variables = {
|
|
|
|
# GNUPGHOME = "$(mktemp -d -t gnupg-$(date +%Y-%m-%d)-XXXXXXXXXX)";
|
|
|
|
# };
|
2024-04-09 14:14:28 +03:00
|
|
|
}
|