This commit is contained in:
Ryan Yin
2024-01-09 21:11:58 +08:00
parent 2f58484b4c
commit b6f46da403
4 changed files with 165 additions and 23 deletions

View File

@@ -1,4 +1,4 @@
{pkgs, config, ...}: {
{pkgs, config, mysecrets, ...}: {
programs.gpg = {
enable = true;
homedir = "${config.home.homeDirectory}/.gnupg";
@@ -15,10 +15,21 @@
mutableKeys = true;
publicKeys = [
# https://www.gnupg.org/gph/en/manual/x334.html
# { source = ./xxx.key, trust = 3}
{ source = "${mysecrets}/public/ryan4yin-gpg-keys.pub"; trust = 5; } # ultimate trust, my own keys.
];
settings = {
};
};
home.packages = with pkgs; [
pinentry-curses
];
services.gpg-agent = {
enable = true;
pinentryFlavor = "curses";
enableSshSupport = false;
grabKeyboardAndMouse = true;
enableScDaemon = false; # enable Smartcard daemon for the GnuPG system
};
}