Home

helix.drv @main - refs - log -
-
https://git.jolheiser.com/helix.drv.git
My Helix configuration as a Nix derivation
tree log patch
fix: add gitignore for filter Signed-off-by: jolheiser <john.olheiser@gmail.com>
Signature
-----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEgqEQpE3xoo1QwJO/uFOtpdp7v3oFAmULz5AACgkQuFOtpdp7 v3oJpBAAlk9IN9tNvoFQIQvsD7ai7jIy8If94jafDMThAIKiZe6q6CmmwT5UF8Rq mSgFdG4AoOPKeH8kjak0eyioFl6P8Ry6uetIksQJ80sE9vnkhFMUPoEDNApWE9V9 LdOYbOtyNsdnBgDhfaZbkIk8EmpGF0ee22QJ72tB7tmapDRN7OBWDASbXVnM2PSf sOXaaVTUSRGsEe5RXrLV58C6VYP7P66BhAQIRfR3OVWjUTGdSRLeKVjkjYxW3Ipi 8FJ/JnQdacrSY7Uwelwn7yu9pwQh9YTpnBbFEimPD5XTx2La9JdmVsPfiAorY8Q+ jpE7wEcftlx7gITdy6drT1MyQkXhsgzm2lTrptQy44mSc6CJUz1ib4Sq+T375ZQo aZRslmbftlMRYizYh2PAlV2VkTC5ccvdt28JiBg8EA1Ix59nB0J7OCJVA2ok0emT nURA3nDE5yv7ZqX+DrSNEgcDa+VkqANRZb6plF5TqXVtIDWXYfzyA9LAcFKDUHnZ LQCE1rA8+IO+sEjESUobiqouS9FaUd8+5a87hQdBsqWiXXJ2CztKsfkGNnZH4Zep TZ2JYP6kMdDlyHzk2MBamXJio961JNDs1obyrRbR1l29LDz6Fae7bgAn9XDdY3Qm ZdDI3vf1//1SgcW1pAXl7SxmicQKWsD7XTcnJFEpJUYIN16TpGs= =pzEU -----END PGP SIGNATURE-----
jolheiser <john.olheiser@gmail.com>
1 year ago
2 changed files, 5 additions(+), 0 deletions(-)
M config.nix -> config.nix
diff --git a/config.nix b/config.nix
index 97fa333cd6dd6690738c53e7f3c139f86d70ffb8..da962720ea0b1b71852becdc10f6209d0622f40c 100644
--- a/config.nix
+++ b/config.nix
@@ -1,4 +1,5 @@
 {pkgs ? import <nixpkgs> {}}: {
+  ignore = [".idea/" "result"];
   settings = {
     theme = "catppuccin_mocha_transparent";
     editor = {
M flake.nix -> flake.nix
diff --git a/flake.nix b/flake.nix
index 8061cb09c09c63ca06f8b315423f8d3f5f9eb282..9b227362cd52c587234d5a6ba4c32f43d9146754 100644
--- a/flake.nix
+++ b/flake.nix
@@ -54,6 +54,7 @@         inherit (grammar) name;
         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 =
@@ -94,6 +95,9 @@         mkdir -p $out/home/helix/themes
         ln -s ${configFile} $out/home/helix/config.toml
         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
       '';