System Gen105 @ 2025-09-26-19:47:12 by jonas@monolith

This commit is contained in:
Jonas Röger 2025-09-26 19:47:12 +02:00
parent 6482c8be7f
commit d914ebbdea
2 changed files with 18 additions and 22 deletions

View File

@ -15,18 +15,21 @@ in {
};
config = lib.mkIf cfg.enable {
# Include udev rules for yubikey.
services.udev.packages = with pkgs; [
yubikey-personalization
];
# OTP Manager
environment.systemPackages = with pkgs; [
gnupg
yubikey-personalization
yubioath-flutter
];
# Enable smartcard support
hardware.gpgSmartcards.enable = true;
services.pcscd.enable = true;
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
};
};
}

View File

@ -27,23 +27,16 @@ in {
}
];
};
services.gpg-agent = {
enable = true;
enableSshSupport = true;
enableZshIntegration = true;
pinentry.package =
if cfg.pinentry == "qt"
then pkgs.pinentry-qt
else pkgs.pinentry.gnome3;
extraConfig = ''
allow-emacs-pinentry
'';
};
home.sessionVariables = {
SSH_AUTH_SOCK = "$XDG_RUNTIME_DIR/gnupg/S.gpg-agent.ssh";
};
systemd.user.settings.Manager.DefaultEnvironment = lib.mapAttrs (_: lib.mkDefault) {
SSH_AUTH_SOCK = "/run/user/%U/gnupg/S.gpg-agent.ssh";
};
# services.gpg-agent = {
# enable = true;
# enableSshSupport = true;
# enableZshIntegration = true;
# };
# home.sessionVariables = {
# SSH_AUTH_SOCK = "$XDG_RUNTIME_DIR/gnupg/S.gpg-agent.ssh";
# };
# systemd.user.settings.Manager.DefaultEnvironment = lib.mapAttrs (_: lib.mkDefault) {
# SSH_AUTH_SOCK = "/run/user/%U/gnupg/S.gpg-agent.ssh";
# };
};
}