fix helix config

This commit is contained in:
ulic-youthlic 2025-01-17 15:04:37 +08:00
parent 9c60b5872c
commit ec9ea69470
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721
2 changed files with 3 additions and 2 deletions

View file

@ -38,6 +38,7 @@
programs.helix = lib.mkIf cfg.enable { programs.helix = lib.mkIf cfg.enable {
enable = true; enable = true;
defaultEditor = true; defaultEditor = true;
extraPackages = cfg.extraPackages;
settings = settings =
let let
config-file = builtins.readFile ./config.toml; config-file = builtins.readFile ./config.toml;
@ -226,6 +227,5 @@
]; ];
}; };
}; };
# home.packages = cfg.extraPackages;
}; };
} }

View file

@ -11,10 +11,11 @@ pkgs.runCommand "helix-wrapped"
'' ''
mkdir -p $out/bin mkdir -p $out/bin
makeWrapper "${lib.getExe inputs.helix.packages."${pkgs.system}".default}" $out/bin/hx \ makeWrapper "${lib.getExe inputs.helix.packages."${pkgs.system}".default}" $out/bin/hx \
--prefix PATH : ${ --suffix PATH : ${
lib.makeBinPath ( lib.makeBinPath (
with pkgs; with pkgs;
[ [
rustfmt
clang-tools clang-tools
libxml2 libxml2
typstyle typstyle