summaryrefslogtreecommitdiff
path: root/common/modules/matugen/templates/matugen-nvim.nix
diff options
context:
space:
mode:
authorbeeb5k <beebeeb5k@gmail.com>2026-06-06 15:59:26 +0530
committerbeeb5k <beebeeb5k@gmail.com>2026-06-06 15:59:26 +0530
commit54471f0faf2697e55e01ed4a276de0cd921a7c30 (patch)
treedc661f9d2c1c2c623072f81fc6b97f9c2fb6c1aa /common/modules/matugen/templates/matugen-nvim.nix
parent2709c6aa130f5eea8414573fa1a7c8a18607ad8d (diff)
Add noctalia niri and way to switch between my config and noxtalia easily
Diffstat (limited to 'common/modules/matugen/templates/matugen-nvim.nix')
-rw-r--r--common/modules/matugen/templates/matugen-nvim.nix34
1 files changed, 19 insertions, 15 deletions
diff --git a/common/modules/matugen/templates/matugen-nvim.nix b/common/modules/matugen/templates/matugen-nvim.nix
index 8e6f5f5..276d695 100644
--- a/common/modules/matugen/templates/matugen-nvim.nix
+++ b/common/modules/matugen/templates/matugen-nvim.nix
@@ -4,19 +4,23 @@
...
}:
{
- xdg.configFile = {
- "matugen/templates/neovim.json" = {
- text = ''
- {
- "mode": "{{mode}}",
- "source_color":"{{colors.primary.default.hex}}",
- <* if {{ is_dark_mode }} *>
- "background":"{{colors.surface.default.hex}}"
- <* else *>
- "background":"{{colors.surface_container_low.default.hex}}"
- <* endif *>
- }
- '';
- };
- };
+ config =
+ lib.mkIf (config.wrappers.neovim.enable && config.beeMods.windowManagers.beeConfig.enable)
+ {
+ xdg.configFile = {
+ "matugen/templates/neovim.json" = {
+ text = ''
+ {
+ "mode": "{{mode}}",
+ "source_color":"{{colors.primary.default.hex}}",
+ <* if {{ is_dark_mode }} *>
+ "background":"{{colors.surface.default.hex}}"
+ <* else *>
+ "background":"{{colors.surface_container_low.default.hex}}"
+ <* endif *>
+ }
+ '';
+ };
+ };
+ };
}