blob: 85682b6b0d81173aafd572239c5437972be9f26b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
{ config, lib, pkgs, ... }:
let
cfg = config.modules.gpg;
inherit (lib) mkEnableOption mkOption mkIf types;
in
{
options.modules.gpg = {
enable = mkEnableOption "gpg";
};
config = mkIf cfg.enable {
services.gpg-agent = {
enable = true;
# TODO: look into forwarding and extra socket, seems useful
enableBashIntegration = true;
enableZshIntegration = true;
# enableNushellIntegration = true;
enableSshSupport = true;
noAllowExternalCache = true;
pinentryPackage = pkgs.pinentry-qt;
# sshKeys = [ "36663E191B00E51513F90FA5CF2BCE8461C297CD" ];
};
};
}
|