summary refs log tree commit diff stats
path: root/user/modules
diff options
context:
space:
mode:
authorAlan Pearce2019-10-02 17:28:38 +0200
committerAlan Pearce2019-10-02 17:28:38 +0200
commit4af53751bbb70f60e1b4300b9fd7d136bc738e90 (patch)
treef59a944cd8fc69b7271de237162001e17cbbde2a /user/modules
parent340b2c244c0b7c331f6633edf9a69f1381916ad2 (diff)
downloadnixfiles-4af53751bbb70f60e1b4300b9fd7d136bc738e90.tar.lz
nixfiles-4af53751bbb70f60e1b4300b9fd7d136bc738e90.tar.zst
nixfiles-4af53751bbb70f60e1b4300b9fd7d136bc738e90.zip
Migrate dunst to home-manager
Diffstat (limited to 'user/modules')
-rw-r--r--user/modules/dunst.nix41
1 files changed, 38 insertions, 3 deletions
diff --git a/user/modules/dunst.nix b/user/modules/dunst.nix
index 78268c04..5c8a46eb 100644
--- a/user/modules/dunst.nix
+++ b/user/modules/dunst.nix
@@ -1,8 +1,43 @@
 { config, pkgs, ... }:
 
 {
-  xdg.configFile.dunst = {
-    recursive = true;
-    source = ../dunst/.config/dunst;
+  services.dunst = {
+    enable = true;
+    settings = {
+      global = {
+        font = "Monospace 13";
+        geometry = "300x10-10+30";
+        follow = "none";
+        sticky_history = "yes";
+        history_length = 20;
+        show_indicators = "yes";
+        separator_height = 2;
+        padding = 8;
+        horizontal_padding = 8;
+
+        separator_color = "frame";
+      };
+      frame = {
+        width = 1;
+        color = "#383838";
+      };
+      urgency_low = {
+        background = "#b8b8b8";
+        foreground = "#f8f8f8";
+        timeout = 10;
+      };
+
+      urgency_normal = {
+        background = "#7cafc2";
+        foreground = "#f8f8f8";
+        timeout = 10;
+      };
+
+      urgency_critical = {
+        background = "#ab4642";
+        foreground = "#f8f8f8";
+        timeout = 0;
+      };
+    };
   };
 }