feat: helix with steel, preserve steel's package

This commit is contained in:
Ryan Yin
2025-11-23 16:07:47 +08:00
parent 87a1d56247
commit 7cf0e96efa
4 changed files with 78 additions and 2 deletions
+11 -2
View File
@@ -1,18 +1,27 @@
{ pkgs, helix, ... }:
{
config,
pkgs,
helix,
...
}:
let
helixPackages = helix.packages.${pkgs.stdenv.hostPlatform.system};
in
{
# to make steel work, we need to git clone this repo to your home directory.
home.sessionVariables.HELIX_STEEL_CONFIG = "${config.home.homeDirectory}/nix-config/home/base/tui/editors/helix/steel";
home.packages = with pkgs; [
steel
];
programs.helix = {
enable = true;
# enable steel as the plugin system
# https://github.com/helix-editor/helix/pull/8675
# https://github.com/mattwparas/helix/blob/steel-event-system/STEEL.md
package = helixPackages.default.overrideAttrs (prevAttrs: {
# enable steel as the plugin system
cargoBuildFeatures = prevAttrs.cargoBuildFeatures or [ ] ++ [ "steel" ];
});
settings = {