Fixes linux gpg-agent

This commit is contained in:
willemml 2023-11-11 03:43:53 -08:00
parent 6ac27127fd
commit 317a6497d0
Signed by: willemml
GPG key ID: C3DE5DF6198DACBD
3 changed files with 9 additions and 9 deletions

View file

@ -20,6 +20,14 @@
programs.ssh.includes = ["/Users/willem/.colima/ssh_config"];
home.file.".gnupg/gpg-agent.conf" = {
text = ''
pinentry-program "${pkgs.pinentry.out}/bin/pinentry"
default-cache-ttl 30
max-cache-ttl 600
'';
};
programs.zsh.shellAliases = {
drs = "nix run nix-darwin -- switch --flake ${config.home.homeDirectory}/.config/dotfiles.nix#";
dbs = "nix run nix-darwin -- build --flake ${config.home.homeDirectory}/.config/dotfiles.nix#";

View file

@ -38,14 +38,6 @@ in rec {
};
};
home.file.".gnupg/gpg-agent.conf" = {
text = ''
pinentry-program "${pkgs.pinentry.out}/bin/pinentry"
default-cache-ttl 30
max-cache-ttl 600
'';
};
home.file.".config/nixpkgs/config.nix".text = ''
# -*-nix-*-
{

View file

@ -13,7 +13,7 @@
enableZshIntegration = true;
defaultCacheTtl = 30;
maxCacheTtl = 600;
pinentryFlavor = "tty";
pinentryFlavor = "curses";
};
emacs = {