Alejandro Angulo
c516173cea
I never set `programs.ssh.enable` so the match blocks weren't taking effect (and were incorrectly set anyway).
39 lines
684 B
Nix
39 lines
684 B
Nix
{
|
|
config,
|
|
pkgs,
|
|
...
|
|
}: {
|
|
home.packages = with pkgs; [
|
|
gnupg
|
|
pinentry-curses
|
|
];
|
|
|
|
programs.gpg = {
|
|
enable = true;
|
|
scdaemonSettings = {
|
|
# Fix conflicts with config in common/yubikey.nix
|
|
disable-ccid = true;
|
|
};
|
|
};
|
|
|
|
programs.ssh = {
|
|
enable = true;
|
|
matchBlocks = {
|
|
"pi" = {
|
|
user = "nixos";
|
|
};
|
|
};
|
|
};
|
|
|
|
services.gpg-agent = {
|
|
enable = true;
|
|
pinentryFlavor = "curses";
|
|
enableZshIntegration = true;
|
|
enableSshSupport = true;
|
|
sshKeys = [
|
|
# run `gpg-connect-agent 'keyinfo --list' /bye` to get these values for existing keys
|
|
"E274D5078327CB6C8C83CFF102CC12A2D493C77F"
|
|
];
|
|
};
|
|
}
|