summary refs log tree commit diff stats
path: root/hm/gpg/default.nix
blob: 8bbfb220eabd24b4cf700cb6d818e07a29ae28c1 (plain) (blame)
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
26
27
28
{
  pkgs,
  lib,
  ...
}: {
  programs.gpg = {
    enable = true;
  };
  services.gpg-agent = {
    enable = false;
    defaultCacheTtl = 60 * 50;
    defaultCacheTtlSsh = 60 * 50;
    maxCacheTtl = 60 * 50;
    maxCacheTtlSsh = 60 * 50;
    pinentry.package = pkgs.pinentry-curses;
    enableSshSupport = true;
    sshKeys = ["4077454831C98FE4BE4A9C167186C5A63615B790"];
  };
  #programs.zsh.initContent = lib.mkBefore ''
  #  current_tty="$(tty)"
  #  tty() { echo "$current_tty"; }
  #  SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
  #  gpg-connect-agent /bye
  #'';
  #home.sessionVariables = {
  #  GNUPGHOME = lib.mkForce "";
  #};
}