diff options
Diffstat (limited to 'common/modules/matugen')
| -rw-r--r-- | common/modules/matugen/default.nix | 2 | ||||
| -rw-r--r-- | common/modules/matugen/templates/matugen-niri.nix | 2 | ||||
| -rw-r--r-- | common/modules/matugen/templates/matugen-nvim.nix | 34 |
3 files changed, 20 insertions, 18 deletions
diff --git a/common/modules/matugen/default.nix b/common/modules/matugen/default.nix index 42b857e..973bd8e 100644 --- a/common/modules/matugen/default.nix +++ b/common/modules/matugen/default.nix @@ -101,7 +101,7 @@ in ${lib.optionalString config.beeMods.windowManagers.niri.enable '' [templates.niri] - input_path = '~/.config/matugen/templates/matugen.kdl' + input_path = '~/.config/matugen/templates/niri.kdl' output_path = '~/.config/niri/matugen.kdl' ''} diff --git a/common/modules/matugen/templates/matugen-niri.nix b/common/modules/matugen/templates/matugen-niri.nix index 9012878..3d365e3 100644 --- a/common/modules/matugen/templates/matugen-niri.nix +++ b/common/modules/matugen/templates/matugen-niri.nix @@ -6,7 +6,7 @@ { config = lib.mkIf (config.beeMods.windowManagers.niri.enable) { xdg.configFile = { - "matugen/templates/matugen.kdl" = { + "matugen/templates/niri.kdl" = { text = '' layout { background-color "{{colors.background.default.hex}}" diff --git a/common/modules/matugen/templates/matugen-nvim.nix b/common/modules/matugen/templates/matugen-nvim.nix index 3be508e..771d163 100644 --- a/common/modules/matugen/templates/matugen-nvim.nix +++ b/common/modules/matugen/templates/matugen-nvim.nix @@ -4,21 +4,23 @@ ... }: { - config = lib.mkIf (config.wrappers.neovim.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 *> - } - ''; + config = + lib.mkIf (config.beeMods.windowManagers.beeConfig.enable || config.beeMods.windowManagers.noctalia) + { + 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 *> + } + ''; + }; + }; }; - }; - }; } |
