From 9d5f62c337a434be363c35aee9ef6729cdcd9aaa Mon Sep 17 00:00:00 2001 From: ulic-youthlic Date: Fri, 17 Jan 2025 15:04:37 +0800 Subject: [PATCH] fix helix config --- home/modules/helix/default.nix | 2 +- pkgs/helix.nix | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/home/modules/helix/default.nix b/home/modules/helix/default.nix index a27c774..79fb106 100644 --- a/home/modules/helix/default.nix +++ b/home/modules/helix/default.nix @@ -38,6 +38,7 @@ programs.helix = lib.mkIf cfg.enable { enable = true; defaultEditor = true; + extraPackages = cfg.extraPackages; settings = let config-file = builtins.readFile ./config.toml; @@ -226,6 +227,5 @@ ]; }; }; - # home.packages = cfg.extraPackages; }; } diff --git a/pkgs/helix.nix b/pkgs/helix.nix index 183e104..ce4e0cd 100644 --- a/pkgs/helix.nix +++ b/pkgs/helix.nix @@ -11,10 +11,11 @@ pkgs.runCommand "helix-wrapped" '' mkdir -p $out/bin makeWrapper "${lib.getExe inputs.helix.packages."${pkgs.system}".default}" $out/bin/hx \ - --prefix PATH : ${ + --suffix PATH : ${ lib.makeBinPath ( with pkgs; [ + rustfmt clang-tools libxml2 typstyle