Move gnupg configuration

This commit is contained in:
Oliver Davies 2025-07-27 18:54:34 +01:00
parent d19c5e6bcd
commit 9dbf58c1b7
5 changed files with 23 additions and 24 deletions

23
modules2/gnupg.nix Normal file
View file

@ -0,0 +1,23 @@
{
flake.modules = {
nixos.pc =
{ pkgs, ... }:
{
security.pam.services.login.gnupg.enable = true;
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
pinentryPackage = pkgs.pinentry-qt;
};
};
homeManager.base.home.file.".gnupg/gpg-agent.conf".text = ''
allow-preset-passphrase
default-cache-ttl 600
max-cache-ttl 7200
enable-ssh-support
'';
};
}