fix gnupg invalid time pinentry

This commit is contained in:
♥ Minnie ♥ 2024-05-07 20:43:58 +08:00
parent 72c40d5291
commit e7bcf06d19

View file

@ -4,14 +4,19 @@
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
# Enables files to be encrypted to age identities stored on YubiKeys # Enables files to be encrypted to age identities stored on YubiKeys
age-plugin-yubikey age-plugin-yubikey
# Cryptfile # Setup dm-crypt managed device-mapper mappings.
cryptsetup cryptsetup
# Yubikey can be used as a smart card for secure encryption
gnupg
# Configure your YubiKey via the command line # Configure your YubiKey via the command line
yubikey-manager yubikey-manager
]; ];
# Manage secret (private) keys.
programs.gnupg.agent = {
enable = true;
# Fix: invalid time when using keytocard
pinentryFlavor = "gtk2";
};
# Use our yubikey as a user login or for sudo access # Use our yubikey as a user login or for sudo access
security.pam.services = { security.pam.services = {
login.u2fAuth = true; login.u2fAuth = true;