28 lines
499 B
Nix
28 lines
499 B
Nix
|
{ pkgs, config, lib, ... }:
|
||
|
with lib;
|
||
|
let cfg = config.eboskma.programs.gpg;
|
||
|
in
|
||
|
{
|
||
|
options.eboskma.programs.gpg = {
|
||
|
enable = mkEnableOption "enable gpg";
|
||
|
};
|
||
|
|
||
|
config = mkIf (cfg.enable) {
|
||
|
home.packages = with pkgs; [
|
||
|
pinentry-curses
|
||
|
];
|
||
|
|
||
|
programs.gpg = {
|
||
|
enable = true;
|
||
|
};
|
||
|
|
||
|
services.gpg-agent = {
|
||
|
enable = true;
|
||
|
pinentryFlavor = "curses";
|
||
|
enableSshSupport = true;
|
||
|
defaultCacheTtlSsh = 14400;
|
||
|
maxCacheTtlSsh = 14400;
|
||
|
};
|
||
|
};
|
||
|
}
|