alqueva/hosts/shared/fish.nix

38 lines
641 B
Nix
Raw Normal View History

2024-10-16 08:55:04 +01:00
{
config,
2024-10-29 15:37:11 +00:00
pkgs,
2024-10-16 08:55:04 +01:00
lib,
...
}: let
cfg = config.alqueva.fish;
in {
options.alqueva.fish = {
enable = lib.mkEnableOption "fish";
};
config = lib.mkIf cfg.enable {
2024-10-29 15:37:11 +00:00
programs = {
fish = {
vendor = {
functions.enable = true;
config.enable = true;
completions.enable = true;
};
enable = true;
2024-10-16 08:55:04 +01:00
};
2024-10-29 15:37:11 +00:00
starship = {
enable = true;
presets = ["no-nerd-font"];
};
};
environment.systemPackages = builtins.attrValues {
inherit
(pkgs.fishPlugins)
fzf-fish
forgit
autopair
;
2024-10-16 08:55:04 +01:00
};
};
}