parent
05d5a100b1
commit
57011c28a5
|
@ -1,4 +1,5 @@
|
|||
{pkgs ? import <nixpkgs> {}}: {
|
||||
ignore = [".idea/" "result"];
|
||||
settings = {
|
||||
theme = "catppuccin_mocha_transparent";
|
||||
editor = {
|
||||
|
|
|
@ -54,6 +54,7 @@
|
|||
artifact = buildGrammar grammar;
|
||||
})
|
||||
config.grammars;
|
||||
ignoreFile = pkgs.writeText "ignore" (builtins.concatStringsSep "\n" config.ignore);
|
||||
configFile = pkgs.writeText "config.toml" (builtins.readFile (tomlFormat.generate "helix-config" config.settings));
|
||||
languageFile = pkgs.writeText "languages.toml" (builtins.readFile (tomlFormat.generate "helix-languages" config.languages));
|
||||
themeFiles =
|
||||
|
@ -95,6 +96,9 @@
|
|||
ln -s ${languageFile} $out/home/helix/languages.toml
|
||||
${builtins.concatStringsSep "\n" themeLinks}
|
||||
|
||||
mkdir -p $out/home/git
|
||||
ln -s ${ignoreFile} $out/home/git/ignore
|
||||
|
||||
makeWrapper ${pkgs.helix}/bin/.hx-wrapped $out/bin/hx --set HELIX_RUNTIME $out/lib/runtime --set XDG_CONFIG_HOME $out/home
|
||||
'';
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue