From a2beafffa7b21fcadb7b365447b8a730e967c409 Mon Sep 17 00:00:00 2001 From: Leonhard Kost Date: Thu, 8 Oct 2026 19:59:01 +0200 Subject: [PATCH] fix: give fish tide plugin path to config so it is recognized on activation --- home-manager/base/fish.nix | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/home-manager/base/fish.nix b/home-manager/base/fish.nix index ef09ded..e78f42e 100644 --- a/home-manager/base/fish.nix +++ b/home-manager/base/fish.nix @@ -22,11 +22,15 @@ }; home.activation.configure-tide = lib.hm.dag.entryAfter [ "writeBoundary" ] '' - if [ ! -e "$HOME/.config/fish/tide_configured" ]; then - echo "Configuring Tide..." - $DRY_RUN_CMD ${pkgs.fish}/bin/fish -c "tide configure --auto --style=Lean --prompt_colors='16 colors' --show_time=No --lean_prompt_height='Two lines' --prompt_connection=Disconnected --prompt_spacing=Compact --icons='Few icons' --transient=Yes" - $DRY_RUN_CMD touch "$HOME/.config/fish/tide_configured" - echo "Finish Configuring Tide..." - fi + run env XDG_DATA_DIRS="${pkgs.fishPlugins.tide}/share:$XDG_DATA_DIRS" \ + ${pkgs.fish}/bin/fish -c "tide configure --auto \ + --style=Lean \ + --prompt_colors='16 colors' \ + --show_time=No \ + --lean_prompt_height='Two lines' \ + --prompt_connection=Disconnected \ + --prompt_spacing=Compact \ + --icons='Few icons' \ + --transient=Yes" ''; }