dotfiles/users/alejandro/gpg.nix

38 lines
750 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
};
programs.ssh.matchBlocks = [
{
"github.com" = {
publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAbpuKWQFiYhNfKXcYpjWFXsYMh7pyhXdGyV8JPBFzgl";
};
}
];
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
};
}