diff --git a/modules/programs/fish.nix b/modules/programs/fish.nix index ca5f1108d..a3aafa658 100644 --- a/modules/programs/fish.nix +++ b/modules/programs/fish.nix @@ -157,6 +157,7 @@ in }; config = mkIf cfg.enable (mkMerge [{ + home.packages = [ cfg.package ]; xdg.dataFile."fish/home-manager_generated_completions".source = @@ -276,12 +277,14 @@ in end ''; + } { - xdg.configFile = mapAttrs' (f_name: f_body: { - name = "fish/functions/${f_name}.fish"; + + xdg.configFile = mapAttrs' (fName: fBody: { + name = "fish/functions/${fName}.fish"; value = {"text" = '' - function ${f_name} - ${f_body} + function ${fName} + ${fBody} end '';}; }) cfg.functions;