{ config, pkgs, ... }: { programs.gpg = { enable = true; homedir = "${config.xdg.dataHome}/gnupg"; mutableKeys = true; mutableTrust = true; settings = { default-key = "Benedikt Peetz "; # TODO: add more }; publicKeys = [ { source = ./keys/key_1.asc; trust = "ultimate"; } { source = ./keys/key_2.asc; trust = "full"; } ]; }; services = { gpg-agent = { enable = true; enableZshIntegration = true; enableScDaemon = true; # smartcards and such things pinentryPackage = pkgs.pinentry-tty; }; }; }