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 # Enable our compositor
picom -b picom -b
# Fix for pinentry bug on NixOS
gpgconf --reload gpg-agent
# Launch our window manager # Launch our window manager
exec xmonad exec xmonad

View file

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

View file

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