mirror of
https://github.com/nmasur/dotfiles
synced 2025-07-06 23:40:15 +00:00
initial refactoring
This commit is contained in:
@ -0,0 +1,28 @@
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
cfg = config.nmasur.presets.services.gnupg;
|
||||
in
|
||||
|
||||
{
|
||||
|
||||
options.nmasur.presets.services.gnupg.enable = lib.mkEnableOption "GPG encryption tools";
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
programs.gpg.enable = true;
|
||||
services.gpg-agent = {
|
||||
enable = true;
|
||||
defaultCacheTtl = 86400; # Resets when used
|
||||
defaultCacheTtlSsh = 86400; # Resets when used
|
||||
maxCacheTtl = 34560000; # Can never reset
|
||||
maxCacheTtlSsh = 34560000; # Can never reset
|
||||
pinentryFlavor = "tty";
|
||||
};
|
||||
home = lib.mkIf config.nmasur.profiles.linux-gui.enable { packages = with pkgs; [ pinentry ]; };
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user