1
0
Fork 0
nix-config/modules/home/cli-apps/fish/default.nix

52 lines
1.1 KiB
Nix

{
lib,
config,
pkgs,
namespace,
...
}:
let
inherit (lib) mkEnableOption mkIf;
cfg = config.${namespace}.cli-apps.fish;
in
{
options.${namespace}.cli-apps.fish = {
enable = mkEnableOption "fish";
};
config = mkIf cfg.enable {
programs.fish = {
enable = true;
shellAliases = {
nix-dns = "nixos-rebuild switch --flake .#dns --target-host dns-1 --use-remote-sudo && nixos-rebuild switch --flake .#dns --target-host dns-2 --use-remote-sudo";
nix-blarm = "nixos-rebuild switch --flake .#blarm --target-host blarm --use-remote-sudo";
cd = "z";
};
plugins = [
{
name = "fzf";
src = pkgs.fishPlugins.fzf.src;
}
{
name = "hydro";
src = pkgs.fishPlugins.hydro.src;
}
{
name = "sponge";
src = pkgs.fishPlugins.sponge.src;
}
{
name = "z";
src = pkgs.fishPlugins.z.src;
}
];
};
programs.zoxide = {
enable = true;
enableFishIntegration = true;
};
};
}