From f106eb2b10540f971fc19b9163c5b0b69627a2ce Mon Sep 17 00:00:00 2001 From: Daniel Siepmann Date: Sun, 22 May 2022 20:29:00 +0200 Subject: [PATCH] Use icon theme also for dunst Remove custom config and use module options. Re use already configured theme. --- home.nix | 4 +++- home/services/dunst.nix | 10 +++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/home.nix b/home.nix index cc3284b..442a018 100644 --- a/home.nix +++ b/home.nix @@ -67,7 +67,9 @@ }; services = { - dunst = import ./home/services/dunst.nix; + dunst = import ./home/services/dunst.nix { + inherit config; + }; mailhog.enable = true; languagetool.enable = true; nextcloud-client.enable = true; diff --git a/home/services/dunst.nix b/home/services/dunst.nix index 58b58aa..0e8a9c9 100644 --- a/home/services/dunst.nix +++ b/home/services/dunst.nix @@ -1,5 +1,14 @@ +{ config }: + { enable = true; + + iconTheme = { + package = config.gtk.iconTheme.package; + name = "${config.gtk.iconTheme.name}"; + size = "32"; + }; + settings = { global = { monitor = 0; @@ -50,7 +59,6 @@ icon_position = "left"; min_icon_size = 0; max_icon_size = 32; - icon_path = "/usr/share/icons/gnome/32x32/emblems/:/usr/share/icons/gnome/32x32/status/:/usr/share/icons/gnome/32x32/actions/:/usr/share/icons/gnome/32x32/emotes/:/usr/share/icons/gnome/32x32/apps/:/usr/share/icons/gnome/32x32/devices/"; sticky_history = "yes"; history_length = 20;