summaryrefslogtreecommitdiff
path: root/wrappers/helix/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'wrappers/helix/default.nix')
-rw-r--r--wrappers/helix/default.nix16
1 files changed, 16 insertions, 0 deletions
diff --git a/wrappers/helix/default.nix b/wrappers/helix/default.nix
new file mode 100644
index 0000000..276318e
--- /dev/null
+++ b/wrappers/helix/default.nix
@@ -0,0 +1,16 @@
+{ pkgs, ... }:
+let
+ config = pkgs.callPackage ./config.nix { };
+in
+{
+ wrappers.helix = {
+ basePackage = pkgs.helix;
+ # helix apparently doesn't support the XDG spec yet 🥀
+ # https://github.com/helix-editor/helix/pull/2135
+ # env.XDG_CONFIG_HOME.value = "${config}";
+ prependFlags = [
+ "--config"
+ "${config}/helix/config.toml"
+ ];
+ };
+}