nixos-config/home-manager/gpg/default.nix

26 lines
446 B
Nix
Raw Normal View History

{ config, lib, pkgs, user, ... }:
{
services.gpg-agent = {
enable = true;
enableZshIntegration = true;
pinentryFlavor = "gtk2";
extraConfig = ''
allow-loopback-pinentry
'';
};
programs.gpg = {
enable = true;
mutableKeys = false;
mutableTrust = false;
publicKeys = [{
source = ./pubring.asc;
trust = "ultimate";
}];
settings = {
pinentry-mode = "loopback";
};
};
}