helix: wrapped helix, added helix cachix

This commit is contained in:
Charlie Root 2024-09-12 14:59:39 +02:00
commit 1f800c2091
5 changed files with 45 additions and 23 deletions

View file

@ -1,10 +1,11 @@
{inputs, ...}: {
{inputs, inputs', ...}: {
# NOTE: We use flake-parts' easyOverlay module to extend our default packages with some extra packages I want to have.
#
imports = [inputs.flake-parts.flakeModules.easyOverlay];
perSystem = {
config,
lib,
inputs',
pkgs,
...
}: {
@ -20,6 +21,7 @@
packages = {
nushell = import ./extraPackages/nushell-wrapped.nix {inherit inputs lib pkgs;};
helix = import ./extraPackages/helix-wrapped.nix {inherit inputs inputs' lib pkgs;};
};
};
}

View file

@ -0,0 +1,35 @@
{
inputs',
inputs,
lib,
pkgs,
...
}: let
helix-wrapped = inputs.wrapper-manager.lib.build {
inherit pkgs;
modules = [
{
wrappers.nushell-wrapped = {
basePackage = inputs'.helix.packages.default;
pathAdd = with pkgs; [
# C/C++
clang-tools
# Markdown
marksman
# Nix
nil
# Bash
bash-language-server
# Shell
shellcheck
];
};
}
];
};
in
helix-wrapped

View file

@ -34,7 +34,7 @@ iputils
asciinema
inetutils
scc
oefetch
onefetch
wget
cpufetch
yt-dlp