summaryrefslogtreecommitdiff
path: root/common/modules/matugen/templates/matugen-dunst.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-dunst.nix
parent2709c6aa130f5eea8414573fa1a7c8a18607ad8d (diff)
Add noctalia niri and way to switch between my config and noxtalia easily
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}}"
+ '';
+ };
};
}