parent
05d5a100b1
commit
57011c28a5
|
@ -1,4 +1,5 @@
|
||||||
{pkgs ? import <nixpkgs> {}}: {
|
{pkgs ? import <nixpkgs> {}}: {
|
||||||
|
ignore = [".idea/" "result"];
|
||||||
settings = {
|
settings = {
|
||||||
theme = "catppuccin_mocha_transparent";
|
theme = "catppuccin_mocha_transparent";
|
||||||
editor = {
|
editor = {
|
||||||
|
|
|
@ -54,6 +54,7 @@
|
||||||
artifact = buildGrammar grammar;
|
artifact = buildGrammar grammar;
|
||||||
})
|
})
|
||||||
config.grammars;
|
config.grammars;
|
||||||
|
ignoreFile = pkgs.writeText "ignore" (builtins.concatStringsSep "\n" config.ignore);
|
||||||
configFile = pkgs.writeText "config.toml" (builtins.readFile (tomlFormat.generate "helix-config" config.settings));
|
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));
|
languageFile = pkgs.writeText "languages.toml" (builtins.readFile (tomlFormat.generate "helix-languages" config.languages));
|
||||||
themeFiles =
|
themeFiles =
|
||||||
|
@ -95,6 +96,9 @@
|
||||||
ln -s ${languageFile} $out/home/helix/languages.toml
|
ln -s ${languageFile} $out/home/helix/languages.toml
|
||||||
${builtins.concatStringsSep "\n" themeLinks}
|
${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
|
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