summaryrefslogtreecommitdiff
path: root/common/modules/matugen/templates/matugen-dunst.nix
diff options
context:
space:
mode:
Diffstat (limited to 'common/modules/matugen/templates/matugen-dunst.nix')
-rw-r--r--common/modules/matugen/templates/matugen-dunst.nix43
1 files changed, 25 insertions, 18 deletions
diff --git a/common/modules/matugen/templates/matugen-dunst.nix b/common/modules/matugen/templates/matugen-dunst.nix
index dae700f..d7f9200 100644
--- a/common/modules/matugen/templates/matugen-dunst.nix
+++ b/common/modules/matugen/templates/matugen-dunst.nix
@@ -1,22 +1,29 @@
{
- xdg.configFile."matugen/templates/dunstrc" = {
- text = ''
- [global]
- frame_color = "{{colors.primary.default.hex}}"
- separator_color = "{{colors.primary_container.default.hex}}"
- foreground = "{{colors.on_surface.default.hex}}"
- highlight = "{{colors.primary.default.hex}}"
- <* if {{ is_dark_mode }} *>
- background = "{{colors.surface.default.hex}}"
- <* else *>
- background = "{{colors.surface_container.default.hex}}"
- <* endif *>
+ config,
+ lib,
+ ...
+}:
+{
+ config = lib.mkIf config.services.dunst.enable {
+ xdg.configFile."matugen/templates/dunstrc" = {
+ text = ''
+ [global]
+ frame_color = "{{colors.primary.default.hex}}"
+ separator_color = "{{colors.primary_container.default.hex}}"
+ foreground = "{{colors.on_surface.default.hex}}"
+ highlight = "{{colors.primary.default.hex}}"
+ <* if {{ is_dark_mode }} *>
+ background = "{{colors.surface.default.hex}}"
+ <* else *>
+ background = "{{colors.surface_container.default.hex}}"
+ <* endif *>
- [urgency_critical]
- background = "{{colors.error_container.default.hex}}"
- foreground = "{{colors.on_error_container.default.hex}}"
- frame_color = "{{colors.error.default.hex}}"
- highlight = "{{colors.error.default.hex}}"
- '';
+ [urgency_critical]
+ background = "{{colors.error_container.default.hex}}"
+ foreground = "{{colors.on_error_container.default.hex}}"
+ frame_color = "{{colors.error.default.hex}}"
+ highlight = "{{colors.error.default.hex}}"
+ '';
+ };
};
}