summaryrefslogtreecommitdiff
path: root/common/modules/matugen/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'common/modules/matugen/default.nix')
-rw-r--r--common/modules/matugen/default.nix16
1 files changed, 9 insertions, 7 deletions
diff --git a/common/modules/matugen/default.nix b/common/modules/matugen/default.nix
index 6eb8182..9e9f3d6 100644
--- a/common/modules/matugen/default.nix
+++ b/common/modules/matugen/default.nix
@@ -21,7 +21,7 @@ in
enable = lib.mkEnableOption "Enable Dynamic colors";
};
- config = lib.mkIf cfg.enable (
+ config = lib.mkIf (cfg.enable && config.beeMods.windowManagers.beeConfig.enable) (
lib.optionalAttrs homeManager {
xdg.configFile = {
"matugen/config.toml" = {
@@ -96,13 +96,15 @@ in
output_path = '~/.config/rofi/shared/colors.rasi'
''}
- [templates.gtk3]
- input_path = '~/.config/matugen/templates/gtk.css'
- output_path = '~/.config/gtk-3.0/matugen.css'
+ ${lib.optionalString (config.gtk.theme.name == "adw-gtk3") ''
+ [templates.gtk3]
+ input_path = '~/.config/matugen/templates/gtk.css'
+ output_path = '~/.config/gtk-3.0/matugen.css'
- [templates.gtk4]
- input_path = '~/.config/matugen/templates/gtk.css'
- output_path = '~/.config/gtk-4.0/matugen.css'
+ [templates.gtk4]
+ input_path = '~/.config/matugen/templates/gtk.css'
+ output_path = '~/.config/gtk-4.0/matugen.css'
+ ''}
[templates.neovim]
input_path = '~/.config/matugen/templates/neovim.json'