diff --git a/configs/helix.nix b/configs/helix.nix index a2298a1..79e2622 100644 --- a/configs/helix.nix +++ b/configs/helix.nix @@ -1,9 +1,12 @@ -{ pkgs, writeTextFile, ... }: +{ pkgs, ... }: let - helixConfig = writeTextFile { - name = "helix/config.toml"; - text = builtins.readFile ./helix.toml; + tomlFmt = pkgs.formats.toml {}; + helixConfig = tomlFmt.generate "helix-config.toml" { + theme = "acme"; + editor = { + mouse = false; + }; }; helixBin = "${pkgs.helix}/bin/hx"; in pkgs.writeScriptBin "hx" '' diff --git a/configs/helix.toml b/configs/helix.toml deleted file mode 100644 index 1628bc0..0000000 --- a/configs/helix.toml +++ /dev/null @@ -1,4 +0,0 @@ -theme = "acme" - -[editor] -mouse = false