about summary refs log tree commit diff
path: root/machines
diff options
context:
space:
mode:
authorProfpatsch <mail@profpatsch.de>2020-09-21 18:28:59 +0200
committerProfpatsch <mail@profpatsch.de>2020-09-21 18:28:59 +0200
commitf774d0e7f8a4047f3e167d3e58a64fb05e9424c2 (patch)
treeca4d2b25938e41605d68936e0d5dc18a6e0036f3 /machines
parentb332f86d7fe3c93c09508f1e50c58a4b8106b059 (diff)
modules/profpatsch/services: add dunst user service
Diffstat (limited to 'machines')
-rw-r--r--machines/profpatsch/shiki.nix31
1 files changed, 16 insertions, 15 deletions
diff --git a/machines/profpatsch/shiki.nix b/machines/profpatsch/shiki.nix
index c26e64c0..22c274ff 100644
--- a/machines/profpatsch/shiki.nix
+++ b/machines/profpatsch/shiki.nix
@@ -339,6 +339,22 @@ in {
 
     ################
     # User services
+    vuizvui.services.profpatsch.dunst = {
+      enable = true;
+      settings = {
+        global = {
+          font = "Sans 18";
+          markup = "full";
+          padding = 3;
+          horizontal_padding = 3;
+        };
+      };
+      iconTheme = {
+        package = pkgs.gnome3.adwaita-icon-theme;
+        name = "Adwaita";
+      };
+    };
+
     systemd.user = lib.mkMerge [
 
       (lib.mkIf config.vuizvui.programs.gnupg.enable {
@@ -390,21 +406,6 @@ in {
         };
       }
 
-      ({
-        services.dunst = {
-          description = "dunst libnotify daemon";
-          serviceConfig = {
-            Type = "dbus";
-            BusName = "org.freedesktop.Notifications";
-            ExecStart =
-              let config = pkgs.writeText "dunst.conf" (lib.generators.toINI {} {});
-              in "${lib.getBin pkgs.dunst}/bin/dunst --config ${config}";
-            Restart = "on-failure";
-          };
-          partOf = [ "graphical-session.target" ];
-          wantedBy = [ "graphical-session.target" ];
-        };
-      })
 
       ({
       #   services.pyrnotify-ssh-connection = {