nix-config/modules/gnupg.nix
Oliver Davies 703bf836de
All checks were successful
/ check (push) Successful in 55s
Rename modules directory
2025-08-18 11:35:07 +01:00

23 lines
473 B
Nix

{
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
'';
};
}