nixos-config/home-manager/stvnliu/shells/fish/default.nix
Zhongheng Liu d88a524105
feat: updated configuration for thunderbird, fish, and hypridle configuration
thunderbird: added configuration values in home-manager

fish: added more plugins and custom functions to do funny things

hypridle: changed timeoutSeconds value from 60 to 600 because it is too annoying
2024-08-12 15:31:40 +08:00

61 lines
1.3 KiB
Nix

{
pkgs,
config,
lib,
...
}: let
cfg = config.myShells.fish;
in
with lib; {
options = {
myShells.fish = {enable = mkEnableOption "Enables fish and components.";};
};
config = mkIf cfg.enable {
programs.fish = {
enable = true;
shellInit = ''
${builtins.readFile ./init/zoxide.fish}
${builtins.readFile ./init/nh.fish}
function fish_greeting
${pkgs.fortune}/bin/fortune -a
end
funcsave -q fish_greeting
'';
shellAliases = import ../aliases {inherit pkgs;};
plugins = with pkgs.fishPlugins; [
{
name = "z";
src = z.src;
}
{
name = "plugin-git";
src = plugin-git.src;
}
{
name = "transient-fish";
src = transient-fish.src;
}
{
name = "done";
src = done.src;
}
{
name = "gruvbox";
src = gruvbox.src;
}
{
name = "colored-man-pages";
src = colored-man-pages.src;
}
{
name = "puffer";
src = puffer.src;
}
{
name = "pisces";
src = pisces.src;
}
];
};
};
}