hosts: desktop: make gpg keys work again

This commit is contained in:
Kabbone 2023-10-02 16:50:40 +02:00
parent 015f316640
commit 9d3d9d9a16
Signed by: Kabbone
SSH Key Fingerprint: SHA256:A5zPB5I6u5V78V51c362BBdCwhDhfDUVbt7NfKdjWBY
3 changed files with 8 additions and 8 deletions

View File

@ -150,7 +150,7 @@
};
pcscd.enable = true;
yubikey-agent.enable = true;
udev.packages = [ pkgs.yubikey-personalization ];
udev.packages = [ pkgs.yubikey-personalization pkgs.nitrokey-udev-rules ];
#flatpak.enable = true; # download flatpak file from website - sudo flatpak install <path> - reboot if not showing up
# sudo flatpak uninstall --delete-data <app-id> (> flatpak list --app) - flatpak uninstall --unused
# List:

View File

@ -44,9 +44,9 @@
# enable = false;
# extraBackends = [ pkgs.sane-airscan ];
# };
hardware = {
nitrokey.enable = true;
};
# hardware = {
# nitrokey.enable = true;
# };
# environment = {
# systemPackages = with pkgs; [

View File

@ -27,10 +27,10 @@
'';
initExtra = '' # Zsh theme
#export GPG_TTY=$(tty)
#gpg-connect-agent updatestartuptty /bye >/dev/null
#unset SSH_AGENT_PID
#export SSH_AUTH_SOCK="/run/user/$UID/gnupg/S.gpg-agent.ssh"
export GPG_TTY=$(tty)
gpg-connect-agent updatestartuptty /bye >/dev/null
unset SSH_AGENT_PID
export SSH_AUTH_SOCK="/run/user/$UID/gnupg/S.gpg-agent.ssh"
# Spaceship
source ${pkgs.spaceship-prompt}/share/zsh/site-functions/prompt_spaceship_setup
autoload -U promptinit; promptinit