chore: fix pinentry

This commit is contained in:
♥ Minnie ♥ 2025-03-14 21:41:17 +08:00
parent 6043d0997c
commit abacbb57d7
Signed by: jasmine
GPG key ID: 8563E358D4E8040E
3 changed files with 13 additions and 9 deletions

View file

@ -15,5 +15,8 @@ dunst &
# Enable our compositor
picom -b
# Fix for pinentry bug on NixOS
gpgconf --reload gpg-agent
# Launch our window manager
exec xmonad

View file

@ -4,15 +4,16 @@
age-plugin-yubikey
# Setup dm-crypt managed device-mapper mappings.
cryptsetup
# Configure your YubiKey via the command line
# Configure our YubiKey via the command line
yubikey-manager
# Required for jetbrains password store
keepass
];
# Manage secret (private) keys.
programs.gnupg.agent = {
enable = true;
# Fix: invalid time when using keytocard
pinentryPackage = pkgs.pinentry-curses;
pinentryPackage = pkgs.pinentry-gtk2;
};
# Use our yubikey as a user login or for sudo access
@ -21,6 +22,12 @@
sudo.u2fAuth = true;
};
# Configure services
services = {
# Access smart cards using SCard API
pcscd.enable = true;
};
# Enable udev rules for gnupg smart cards
hardware.gpgSmartcards.enable = true;
}

View file

@ -33,12 +33,6 @@
adb.enable = true;
};
# Configure services
services = {
# Access smart cards using SCard API
pcscd.enable = true;
};
# Manage linux containers
virtualisation.docker = {
enable = true;