dotfiles/users/alejandro/gpg.nix

30 lines
565 B
Nix
Raw Normal View History

2022-09-18 19:42:30 +00:00
{
config,
pkgs,
...
}: {
home.packages = with pkgs; [
gnupg
pinentry-curses
];
programs.gpg = {
enable = true;
2022-09-23 03:21:12 +00:00
scdaemonSettings = {
# Fix conflicts with config in common/yubikey.nix
disable-ccid = true;
};
2022-09-18 19:42:30 +00:00
};
services.gpg-agent = {
enable = true;
pinentryFlavor = "curses";
2022-09-22 01:41:08 +00:00
enableZshIntegration = true;
enableSshSupport = true;
2022-11-08 01:27:35 +00:00
sshKeys = [
# run `gpg-connect-agent 'keyinfo --list' /bye` to get these values for existing keys
"E274D5078327CB6C8C83CFF102CC12A2D493C77F"
2022-11-08 01:27:35 +00:00
];
2022-09-18 19:42:30 +00:00
};
}