whole flake: cleanup

This commit is contained in:
Charlie Root 2024-11-02 17:45:34 +01:00
commit 57831df0d5
Signed by: faukah
SSH key fingerprint: SHA256:jpYIt4Vkz1NBTQcks/N9OPTfTFxE6KF2W/rV7hrfrIw
22 changed files with 330 additions and 437 deletions

View file

@ -0,0 +1,36 @@
{
inputs,
pkgs,
...
}: let
toml = pkgs.formats.toml {};
inherit (inputs.helix.packages.${pkgs.stdenv.system}) helix;
packages = with pkgs; [
# C/C++
clang-tools
# Markdown
marksman
# Nix
nil
lldb_19
# Bash
bash-language-server
# Shell
shellcheck
];
helix-config = import ./config.nix;
helix-wrapped = pkgs.symlinkJoin {
name = "fish-wrapped";
paths = [helix] ++ packages;
buildInputs = [pkgs.makeWrapper];
postBuild = ''
wrapProgram $out/bin/fish --set XDG_CONFIG_HOME "${toml.generate "config.toml" helix-config}"
'';
};
in
helix-wrapped