fix pinentry for gpg

This commit is contained in:
Charlotte 🦝 Delenk 2022-02-02 11:42:00 +01:00
parent c7fc6b1eea
commit a0af10c1e2
Signed by: darkkirb
GPG key ID: 015E3768A70AFBC5

View file

@ -11,7 +11,7 @@
./services/nix-cache-upload.nix
];
services.openssh.enable = true;
environment.systemPackages = [ pkgs.git ];
environment.systemPackages = with pkgs; [ git pinentry-curses ];
networking.firewall.allowedTCPPorts = [ 22 ];
networking.firewall.allowedUDPPortRanges = [
{
@ -43,12 +43,16 @@
console.keyMap = "neo";
programs.gnupg.agent.enable = true;
security.sudo.extraConfig = ''
Defaults env_keep += "TMUX"
'';
security.tpm2.enable = true;
security.tpm2.abrmd.enable = true;
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
pinentryFlavor = "curses";
};
}