24 lines
495 B
Nix
24 lines
495 B
Nix
{ pkgs, config, ... }:
|
|
{
|
|
programs.gpg = {
|
|
enable = true;
|
|
homedir = "${config.xdg.configHome}/gnupg";
|
|
# TODO: declare public keys and trust declaratively
|
|
# mutableKeys = false;
|
|
# mutableTrust = false;
|
|
# publicKeys = [];
|
|
# settings = {
|
|
|
|
# };
|
|
};
|
|
|
|
services.gpg-agent = {
|
|
enable = true;
|
|
pinentryPackage = pkgs.pinentry-curses;
|
|
enableExtraSocket = true;
|
|
enableSshSupport = true;
|
|
enableScDaemon = true;
|
|
grabKeyboardAndMouse = false;
|
|
};
|
|
}
|