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

31 lines
573 B
Nix

{ pkgs, config, ... }:
{
imports = [
./auto-refresh-keys.nix
];
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"
];
};
};
services.gpg-agent = {
enable = true;
pinentryPackage = pkgs.pinentry-curses;
enableExtraSocket = true;
enableSshSupport = true;
enableScDaemon = true;
grabKeyboardAndMouse = false;
};
}