about summary refs log tree commit diff
path: root/modules/user/profpatsch
diff options
context:
space:
mode:
authorProfpatsch <mail@profpatsch.de>2021-12-27 18:22:48 +0100
committerProfpatsch <mail@profpatsch.de>2021-12-30 03:20:18 +0100
commita6dcac8edb7a101af760c0e0e3649c6a5f93476c (patch)
tree511b080d87b6e937954ac5345288e13702008490 /modules/user/profpatsch
parent21013a116189a66df77a78f8c803c40fd6351224 (diff)
machines/profpatsch: fix dunst for new dunst versions
They changed all config options and a bunch of defaults. I am angery.

ES BLEIBT ALLES SO, WIE ES IST
Diffstat (limited to 'modules/user/profpatsch')
-rw-r--r--modules/user/profpatsch/services/dunst.nix10
1 files changed, 9 insertions, 1 deletions
diff --git a/modules/user/profpatsch/services/dunst.nix b/modules/user/profpatsch/services/dunst.nix
index 55bc315b..0c4871b2 100644
--- a/modules/user/profpatsch/services/dunst.nix
+++ b/modules/user/profpatsch/services/dunst.nix
@@ -56,6 +56,14 @@ in {
       '';
     };
 
+    verbosity = lib.mkOption {
+      type = lib.types.enum [ "crit" "warn" "mesg" "info" "debug"];
+      default = "mesg";
+      description = ''
+        Verbosity of the dunst daemon on stderr.
+      '';
+    };
+
     iconTheme = lib.mkOption {
       type = themeType;
       description = "Set the icon theme.";
@@ -68,7 +76,7 @@ in {
       serviceConfig = {
         Type = "dbus";
         BusName = "org.freedesktop.Notifications";
-        ExecStart = "${lib.getBin pkgs.dunst}/bin/dunst -config ${pkgs.writeText "dunst.conf" (toDunstINI cfg.settings)}";
+        ExecStart = "${lib.getBin pkgs.dunst}/bin/dunst -verbosity ${cfg.verbosity} -config ${pkgs.writeText "dunst.conf" (toDunstINI cfg.settings)}";
         Restart = "on-failure";
         RestartSec = "1";
       };