refactor: fish plugins

This commit is contained in:
Moritz Böhme 2025-06-20 16:28:56 +02:00
parent 982f680940
commit 892f03c6e5
No known key found for this signature in database
GPG key ID: 970C6E89EB0547A9

View file

@ -18,7 +18,6 @@ in {
config = lib.mkIf cfg.enable {
# set as default shell
users.users.moritz.shell = pkgs.fish;
environment.systemPackages = with pkgs.fishPlugins; [fzf-fish pisces];
# needed for nix completions
programs.fish.enable = true;
@ -26,17 +25,30 @@ in {
programs = {
fish = {
enable = true;
plugins = [
{
name = "fish-completion-sync";
src = pkgs.fetchFromGitHub {
owner = "pfgray";
repo = "fish-completion-sync";
rev = "ba70b6457228af520751eab48430b1b995e3e0e2";
sha256 = "sha256-JdOLsZZ1VFRv7zA2i/QEZ1eovOym/Wccn0SJyhiP9hI=";
};
}
];
plugins = let
mkDef = pkg: {
name = pkg.pname;
src = pkg.src;
};
plugins = with pkgs.fishPlugins; [
sponge
pisces
colored-man-pages
done
];
in
map mkDef plugins
++ [
{
name = "fish-completion-sync";
src = pkgs.fetchFromGitHub {
owner = "iynaix";
repo = "fish-completion-sync";
rev = "4f058ad2986727a5f510e757bc82cbbfca4596f0";
sha256 = "sha256-kHpdCQdYcpvi9EFM/uZXv93mZqlk1zCi2DRhWaDyK5g=";
};
}
];
shellAbbrs = shellConfig.abbreviations;
shellAliases = shellConfig.aliases;
shellInit =