feat: helix - add steel as the plugin system

fix: evaluation warning - 'system' has been renamed to/replaced by 'stdenv.hostPlatform.system'

Signed-off-by: Ryan Yin <xiaoyin_c@qq.com>
This commit is contained in:
Ryan Yin
2025-11-23 10:55:35 +08:00
parent def33a486b
commit 87a1d56247
11 changed files with 78 additions and 17 deletions

50
flake.lock generated
View File

@@ -449,6 +449,28 @@
"type": "github"
}
},
"helix": {
"inputs": {
"nixpkgs": [
"nixpkgs"
],
"rust-overlay": "rust-overlay_2"
},
"locked": {
"lastModified": 1763684023,
"narHash": "sha256-qqs3d78CjGiU/6kebCLnrZZ5RSe3d89dDNnWohYooII=",
"owner": "mattwparas",
"repo": "helix",
"rev": "9044221322996b579c75bc1733f55da27301ad05",
"type": "github"
},
"original": {
"owner": "mattwparas",
"ref": "steel-event-system",
"repo": "helix",
"type": "github"
}
},
"hercules-ci-effects": {
"inputs": {
"flake-parts": [
@@ -525,7 +547,7 @@
"nixpkgs"
],
"pre-commit-hooks-nix": "pre-commit-hooks-nix",
"rust-overlay": "rust-overlay_2"
"rust-overlay": "rust-overlay_3"
},
"locked": {
"lastModified": 1762205063,
@@ -959,7 +981,7 @@
"nixpkgs": [
"nixpkgs"
],
"rust-overlay": "rust-overlay_3"
"rust-overlay": "rust-overlay_4"
},
"locked": {
"lastModified": 1731006591,
@@ -1068,6 +1090,7 @@
"disko": "disko",
"ghostty": "ghostty",
"haumea": "haumea",
"helix": "helix",
"home-manager": "home-manager_2",
"lanzaboote": "lanzaboote",
"my-asahi-firmware": "my-asahi-firmware",
@@ -1110,6 +1133,27 @@
}
},
"rust-overlay_2": {
"inputs": {
"nixpkgs": [
"helix",
"nixpkgs"
]
},
"locked": {
"lastModified": 1759631821,
"narHash": "sha256-V8A1L0FaU/aSXZ1QNJScxC12uP4hANeRBgI4YdhHeRM=",
"owner": "oxalica",
"repo": "rust-overlay",
"rev": "1d7cbdaad90f8a5255a89a6eddd8af24dc89cafe",
"type": "github"
},
"original": {
"owner": "oxalica",
"repo": "rust-overlay",
"type": "github"
}
},
"rust-overlay_3": {
"inputs": {
"nixpkgs": [
"lanzaboote",
@@ -1130,7 +1174,7 @@
"type": "github"
}
},
"rust-overlay_3": {
"rust-overlay_4": {
"inputs": {
"flake-utils": "flake-utils_2",
"nixpkgs": [

View File

@@ -143,6 +143,13 @@
niri.url = "github:sodiboo/niri-flake";
helix = {
# Helix with steel as plugin system
# https://github.com/helix-editor/helix/pull/8675
url = "github:mattwparas/helix/steel-event-system";
inputs.nixpkgs.follows = "nixpkgs";
};
# -------------- Gaming ---------------------
nix-gaming = {

View File

@@ -1,6 +1,4 @@
{ pkgs, ... }:
{
programs.helix = {
enable = true;
};
programs.helix.enable = true;
}

View File

@@ -16,7 +16,7 @@
pkgs.hello # pkgs.ghostty is currently broken on darwin
else
pkgs.ghostty; # the stable version
# package = ghostty.packages.${pkgs.system}.default; # the latest version
# package = ghostty.packages.${pkgs.stdenv.hostPlatform.system}.default; # the latest version
enableBashIntegration = false;
installBatSyntax = false;
# installVimSyntax = true;

View File

@@ -1,8 +1,20 @@
{ pkgs, ... }:
{ pkgs, helix, ... }:
let
helixPackages = helix.packages.${pkgs.stdenv.hostPlatform.system};
in
{
home.packages = with pkgs; [
steel
];
programs.helix = {
enable = true;
package = pkgs.helix;
# https://github.com/helix-editor/helix/pull/8675
package = helixPackages.default.overrideAttrs (prevAttrs: {
# enable steel as the plugin system
cargoBuildFeatures = prevAttrs.cargoBuildFeatures or [ ] ++ [ "steel" ];
});
settings = {
editor = {
line-number = "relative";

View File

@@ -20,11 +20,11 @@
# aseprite # Animated sprite editor & pixel art tool
# this app consumes a lot of storage, so do not install it currently
# kicad # 3d printing, eletrical engineering
# kicad # 3d printing, electrical engineering
]
++ (lib.optionals pkgs.stdenv.isx86_64 [
# https://github.com/edolstra/nix-warez/blob/master/blender/flake.nix
blender-bin.packages.${pkgs.system}.blender_4_2 # 3d modeling
blender-bin.packages.${pkgs.stdenv.hostPlatform.system}.blender_4_2 # 3d modeling
ldtk # A modern, versatile 2D level editor
@@ -33,7 +33,7 @@
# yosys # fpga synthesis
# nextpnr # fpga place and route
# openfpgaloader # fpga programming
# nur-ryan4yin.packages.${pkgs.system}.gowin-eda-edu-ide # app: `gowin-env` => `gw_ide` / `gw_pack` / ...
# nur-ryan4yin.packages.${pkgs.stdenv.hostPlatform.system}.gowin-eda-edu-ide # app: `gowin-env` => `gw_ide` / `gw_pack` / ...
]);
programs = {

View File

@@ -5,7 +5,7 @@
}:
let
anyrunPackages = anyrun.packages.${pkgs.system};
anyrunPackages = anyrun.packages.${pkgs.stdenv.hostPlatform.system};
in
{

View File

@@ -49,7 +49,7 @@
ENABLED = true;
MAILER_TYPE = "sendmail";
FROM = "do-not-reply@writefor.fun";
SENDMAIL_PATH = "${pkgs.system-sendmail}/bin/sendmail";
SENDMAIL_PATH = "${pkgs.stdenv.hostPlatform.system-sendmail}/bin/sendmail";
};
other = {
SHOW_FOOTER_VERSION = false;

View File

@@ -65,7 +65,7 @@
# https://github.com/casualsnek/waydroid_script
# https://github.com/AtaraxiaSjel/nur/tree/master/pkgs/waydroid-script
# https://wiki.archlinux.org/title/Waydroid#ARM_Apps_Incompatible
# nur-ataraxiasjel.packages.${pkgs.system}.waydroid-script
# nur-ataraxiasjel.packages.${pkgs.stdenv.hostPlatform.system}.waydroid-script
# Need to add [File (in the menu bar) -> Add connection] when start for the first time
# virt-manager

View File

@@ -18,7 +18,7 @@
};
environment.systemPackages = [
agenix.packages."${pkgs.system}".default
agenix.packages."${pkgs.stdenv.hostPlatform.system}".default
];
# if you changed this key, you need to regenerate all encrypt files from the decrypt contents!

View File

@@ -53,7 +53,7 @@ in
config = mkIf (cfg.desktop.enable || enabledServerSecrets) (mkMerge [
{
environment.systemPackages = [
agenix.packages."${pkgs.system}".default
agenix.packages."${pkgs.stdenv.hostPlatform.system}".default
];
# if you changed this key, you need to regenerate all encrypt files from the decrypt contents!