From 70906dd80a4afda7051ea33843e18d457aefb398 Mon Sep 17 00:00:00 2001 From: Aaron Bieber Date: Tue, 2 May 2023 12:27:54 -0600 Subject: [PATCH] configs/helix: init and install on gui machines --- configs/helix.nix | 11 +++++++++++ configs/helix.toml | 4 ++++ gui/default.nix | 1 + 3 files changed, 16 insertions(+) create mode 100644 configs/helix.nix create mode 100644 configs/helix.toml diff --git a/configs/helix.nix b/configs/helix.nix new file mode 100644 index 0000000..a2298a1 --- /dev/null +++ b/configs/helix.nix @@ -0,0 +1,11 @@ +{ pkgs, writeTextFile, ... }: + +let + helixConfig = writeTextFile { + name = "helix/config.toml"; + text = builtins.readFile ./helix.toml; + }; + helixBin = "${pkgs.helix}/bin/hx"; +in pkgs.writeScriptBin "hx" '' + ${helixBin} -c ${helixConfig} $@ +'' diff --git a/configs/helix.toml b/configs/helix.toml new file mode 100644 index 0000000..1628bc0 --- /dev/null +++ b/configs/helix.toml @@ -0,0 +1,4 @@ +theme = "acme" + +[editor] +mouse = false diff --git a/gui/default.nix b/gui/default.nix index 356cb1f..af183a9 100644 --- a/gui/default.nix +++ b/gui/default.nix @@ -99,6 +99,7 @@ in with lib; { (callPackage ../pkgs/tailscale-systray.nix { }) (callPackage ../pkgs/govulncheck.nix { }) + (callPackage ../configs/helix.nix { }) ]; })