aboutsummaryrefslogtreecommitdiff
path: root/modules/terminal/system/programs/helix.nix
diff options
context:
space:
mode:
authorCollin Williams <96917990+bluedragon1221@users.noreply.github.com>2025-09-05 13:38:29 -0500
committerCollin Williams <96917990+bluedragon1221@users.noreply.github.com>2025-09-05 13:38:29 -0500
commit9497b67ef9e6f397ba146cc4c12fec8e9ecae7b2 (patch)
treeca7572e556a0653be8c2c1e1f80da6f147249702 /modules/terminal/system/programs/helix.nix
parentce7493a36431965d44e6c538a831c1200bedc0bc (diff)
allow same configurations for fish in bash
Diffstat (limited to 'modules/terminal/system/programs/helix.nix')
-rw-r--r--modules/terminal/system/programs/helix.nix25
1 files changed, 16 insertions, 9 deletions
diff --git a/modules/terminal/system/programs/helix.nix b/modules/terminal/system/programs/helix.nix
index 71dad76..54a6932 100644
--- a/modules/terminal/system/programs/helix.nix
+++ b/modules/terminal/system/programs/helix.nix
@@ -156,15 +156,22 @@ in
generator = (pkgs.formats.toml {}).generate "toml_file";
inherit value;
};
- in {
- ".config/helix/config.toml" = t settings;
- ".config/helix/languages.toml" = t languages;
- ".config/helix/themes/catppuccin_mocha_transparent.toml" = t theme;
-
- ".config/fish/conf.d/helix.fish".text = lib.mkIf config.collinux.terminal.shells.fish.enable ''
- set -gx EDITOR hx
- '';
- };
+ in
+ {
+ ".config/helix/config.toml" = t settings;
+ ".config/helix/languages.toml" = t languages;
+ ".config/helix/themes/catppuccin_mocha_transparent.toml" = t theme;
+ }
+ // (lib.optionalAttrs config.collinux.terminal.shells.fish.enable {
+ ".config/fish/conf.d/helix.fish".text = ''
+ set -gx EDITOR hx
+ '';
+ })
+ // (lib.optionalAttrs config.collinux.terminal.shells.bash.enable {
+ ".config/bash/conf.d/helix.bash".text = ''
+ EDITOR=hx
+ '';
+ });
packages = [pkgs.helix];
};