nix-infra/modules/home/fish/default.nix

24 lines
564 B
Nix
Raw Normal View History

2024-03-24 18:02:33 +00:00
{ ... }: {
2024-03-24 18:02:28 +00:00
programs.fish = {
enable = true;
2024-03-24 18:02:33 +00:00
interactiveShellInit = ''
export GPG_TTY="$(tty)"
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
gpgconf --launch gpg-agent
gpg-connect-agent updatestartuptty /bye > /dev/null
'';
2024-03-24 18:02:28 +00:00
};
home.file = {
fish_prompt = {
source = ./fish_prompt.fish;
target = ".config/fish/functions/fish_prompt.fish";
};
fish_right_prompt = {
source = ./fish_right_prompt.fish;
target = ".config/fish/functions/fish_right_prompt.fish";
};
};
}