home: add gpg

Configures both `gpg` and `gpg-agent`
This commit is contained in:
Bruno BELANYI 2021-02-21 18:43:33 +00:00
parent 461937cc4b
commit 13f90dfcfa
2 changed files with 15 additions and 0 deletions

View file

@ -5,6 +5,7 @@
./direnv.nix
./documentation.nix
./git
./gpg.nix
./htop.nix
./jq.nix
./packages.nix

14
home/gpg.nix Normal file
View file

@ -0,0 +1,14 @@
{ ... }:
{
programs.gpg = {
enable = true;
};
services.gpg-agent = {
enable = true;
enableSshSupport = true; # One agent to rule them all
extraConfig = ''
allow-loopback-pinentry
'';
};
}