2024-06-02 17:13:29 +02:00
|
|
|
{ pkgs, config, ... }:
|
2022-08-16 03:24:31 +02:00
|
|
|
{
|
2024-08-02 17:24:25 +02:00
|
|
|
imports = [
|
|
|
|
./auto-refresh-keys.nix
|
2024-08-02 18:06:40 +02:00
|
|
|
./declarative-key-fetcher.nix
|
2024-08-02 17:24:25 +02:00
|
|
|
];
|
|
|
|
|
2022-08-16 03:24:31 +02:00
|
|
|
programs.gpg = {
|
|
|
|
enable = true;
|
|
|
|
homedir = "${config.xdg.configHome}/gnupg";
|
|
|
|
|
2024-08-02 17:24:25 +02:00
|
|
|
auto-refresh-keys.enable = true;
|
|
|
|
|
|
|
|
settings = {
|
|
|
|
keyserver = [
|
|
|
|
"hkps://keys.openpgp.org"
|
|
|
|
"hkps://keyserver.ubuntu.com"
|
|
|
|
"hkps://pgp.mit.edu"
|
|
|
|
];
|
|
|
|
};
|
2024-08-02 18:06:40 +02:00
|
|
|
|
|
|
|
fetch-keys = {
|
|
|
|
enable = true;
|
|
|
|
keys = {
|
|
|
|
"495A898FC1A0276F51EA3155355E5D82B18F4E71" = { trust = 4; };
|
|
|
|
"490872D2A1D6451C9A3AA544D33368A59745C2F0" = { };
|
|
|
|
"D231FBC3E4C3B668103982D8BC9E348039A74F7F" = { };
|
|
|
|
};
|
|
|
|
};
|
2022-08-16 03:24:31 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
services.gpg-agent = {
|
|
|
|
enable = true;
|
2024-06-02 17:13:29 +02:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|