nix-dotfiles/home/programs/gpg/default.nix

31 lines
573 B
Nix
Raw Normal View History

{ pkgs, config, ... }:
2022-08-16 03:24:31 +02:00
{
imports = [
./auto-refresh-keys.nix
];
2022-08-16 03:24:31 +02:00
programs.gpg = {
enable = true;
homedir = "${config.xdg.configHome}/gnupg";
auto-refresh-keys.enable = true;
settings = {
keyserver = [
"hkps://keys.openpgp.org"
"hkps://keyserver.ubuntu.com"
"hkps://pgp.mit.edu"
];
};
2022-08-16 03:24:31 +02:00
};
services.gpg-agent = {
enable = true;
pinentryPackage = pkgs.pinentry-curses;
2023-07-28 22:23:43 +02:00
enableExtraSocket = true;
2022-08-16 03:24:31 +02:00
enableSshSupport = true;
enableScDaemon = true;
grabKeyboardAndMouse = false;
};
}