From 8f161fa3513ce57cb6e4403f10a5bc416d9005df Mon Sep 17 00:00:00 2001 From: Aaron Bieber Date: Tue, 2 May 2023 18:21:09 -0600 Subject: [PATCH] configs/helix: switch to all nix config --- configs/helix.nix | 11 +++++++---- configs/helix.toml | 4 ---- 2 files changed, 7 insertions(+), 8 deletions(-) delete mode 100644 configs/helix.toml 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