nixos/modules/programs/fish/default.nix

48 lines
1.2 KiB
Nix
Raw Normal View History

2025-02-03 07:55:17 +01:00
{
2025-12-13 21:41:52 +01:00
config,
2025-02-03 07:55:17 +01:00
pkgs,
...
2025-12-13 21:41:52 +01:00
}: let
inherit (config.fireproof) username;
in {
2025-02-03 07:55:17 +01:00
config = {
programs.fish.enable = true;
2025-02-18 20:17:57 +01:00
users.users.${username}.shell = pkgs.fish;
# Fish enables generateCaches by default, which causes slow builds
documentation.man.generateCaches = false;
fireproof.home-manager.programs.fish = {
enable = true;
shellInit = ''
${builtins.readFile ./theme.fish}
2025-02-19 23:42:24 +01:00
${builtins.readFile ./k8s.fish}
2025-02-26 19:21:59 +01:00
${builtins.readFile ./autocomplete.fish}
2025-08-19 11:25:54 +02:00
${pkgs.nix-your-shell}/bin/nix-your-shell fish | source
2025-02-18 20:17:57 +01:00
'';
2025-02-03 07:55:17 +01:00
plugins = [
{
name = "to-fish";
src = pkgs.fetchFromGitHub {
owner = "joehillen";
repo = "to-fish";
rev = "52b151cfe67c00cb64d80ccc6dae398f20364938";
2025-02-18 20:17:57 +01:00
sha256 = "sha256-DfDsU/qY2XdYlkLISIOv02ggHfKEpb+YompNWWjs5/A=";
2025-02-03 07:55:17 +01:00
};
}
{
name = "theme-bobthefish";
src = pkgs.fetchFromGitHub {
owner = "oh-my-fish";
repo = "theme-bobthefish";
rev = "e3b4d4eafc23516e35f162686f08a42edf844e40";
2025-02-18 20:17:57 +01:00
hash = "sha256-cXOYvdn74H4rkMWSC7G6bT4wa9d3/3vRnKed2ixRnuA=";
2025-02-03 07:55:17 +01:00
};
}
];
};
};
}