feat(gpg): Configure gpg & agent
This commit is contained in:
parent
8a260cc6df
commit
59c52220b1
2 changed files with 18 additions and 0 deletions
|
@ -12,6 +12,7 @@
|
||||||
./fzf.nix
|
./fzf.nix
|
||||||
./gh.nix
|
./gh.nix
|
||||||
./git.nix
|
./git.nix
|
||||||
|
./gpg.nix
|
||||||
./hyfetch.nix
|
./hyfetch.nix
|
||||||
./just.nix
|
./just.nix
|
||||||
./lazygit.nix
|
./lazygit.nix
|
||||||
|
|
17
home/programs/gpg.nix
Normal file
17
home/programs/gpg.nix
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
programs.gpg = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
services.gpg-agent = rec {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
# TODO: Set this to pinentry-curses on non-GUI systems.
|
||||||
|
pinentryPackage = pkgs.pinentry-gtk2;
|
||||||
|
|
||||||
|
# Don't ask for the password very often.
|
||||||
|
defaultCacheTtl = 60480000;
|
||||||
|
maxCacheTtl = defaultCacheTtl;
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue