From 704bc8a514c81390df65f87ade33ea8b65ffbbb0 Mon Sep 17 00:00:00 2001 From: Hendrik Sokolowski Date: Fri, 6 May 2022 18:36:22 +0200 Subject: [PATCH] Modify crypto for personal needs --- modules/crypto/default.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/modules/crypto/default.nix b/modules/crypto/default.nix index 712787aa..2e62109e 100644 --- a/modules/crypto/default.nix +++ b/modules/crypto/default.nix @@ -16,11 +16,17 @@ in services.gnome.gnome-keyring.enable = true; + environment.shellInit = '' + gpg-connect-agent /bye + export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket) + ''; + home-manager = with pkgs; pkgs.lib.setAttrByPath [ "users" psCfg.user.name ] { systemd.user.services.polkit-gnome-authentication-agent = import ./polkit-gnome-authentication-agent.service.nix pkgs; services.gpg-agent = { enable = true; + enableSshSupport = true; pinentryFlavor = "gnome3"; verbose = true; }; @@ -32,9 +38,6 @@ in home.packages = [ gnome.seahorse keepassxc - libsecret - qMasterPassword - restic ]; }; };