37 lines
641 B
Nix
37 lines
641 B
Nix
{
|
|
config,
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}: let
|
|
cfg = config.alqueva.fish;
|
|
in {
|
|
options.alqueva.fish = {
|
|
enable = lib.mkEnableOption "fish";
|
|
};
|
|
config = lib.mkIf cfg.enable {
|
|
programs = {
|
|
fish = {
|
|
vendor = {
|
|
functions.enable = true;
|
|
config.enable = true;
|
|
completions.enable = true;
|
|
};
|
|
enable = true;
|
|
};
|
|
starship = {
|
|
enable = true;
|
|
presets = ["no-nerd-font"];
|
|
};
|
|
};
|
|
|
|
environment.systemPackages = builtins.attrValues {
|
|
inherit
|
|
(pkgs.fishPlugins)
|
|
fzf-fish
|
|
forgit
|
|
autopair
|
|
;
|
|
};
|
|
};
|
|
}
|