From 4fc46a98a03b839a196fe8b94db003281f6be870 Mon Sep 17 00:00:00 2001 From: Eman Resu <78693624+quatquatt@users.noreply.github.com> Date: Tue, 18 Nov 2025 11:02:37 -0500 Subject: [PATCH] nixos/fish: prevent fish_indent from reading from config --- nixos/modules/programs/fish.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nixos/modules/programs/fish.nix b/nixos/modules/programs/fish.nix index 8f68306e07a1..e641167099be 100644 --- a/nixos/modules/programs/fish.nix +++ b/nixos/modules/programs/fish.nix @@ -26,13 +26,15 @@ let envInteractiveShellInit = pkgs.writeText "interactiveShellInit" cfge.interactiveShellInit; + # Need to use --no-config to prevent fish_indent from trying to read from config + # See https://github.com/fish-shell/fish-shell/issues/12079 indentFishFile = name: text: pkgs.runCommand name { nativeBuildInputs = [ cfg.package ]; inherit text; passAsFile = [ "text" ]; - } "fish_indent < $textPath > $out"; + } "fish --no-config -c 'fish_indent $textPath' > $out"; sourceEnv = file: