From 588bc378a2a6667431750dd3fed8f2ac1debc684 Mon Sep 17 00:00:00 2001 From: Riley Apeldoorn Date: Thu, 15 Jun 2023 17:19:31 +0200 Subject: [PATCH] Move dunst to own module, update styles --- shared/home/gui/default.nix | 1 + shared/home/gui/dunst.nix | 21 +++++++++++++++++++++ system/dev-lt-63/home.nix | 15 --------------- 3 files changed, 22 insertions(+), 15 deletions(-) create mode 100644 shared/home/gui/dunst.nix diff --git a/shared/home/gui/default.nix b/shared/home/gui/default.nix index 7e0d679..2e3693d 100644 --- a/shared/home/gui/default.nix +++ b/shared/home/gui/default.nix @@ -11,6 +11,7 @@ in { ./sway.nix ./term.nix ./waybar.nix + ./dunst.nix ]; config = lib.mkIf (cfg.enable) { diff --git a/shared/home/gui/dunst.nix b/shared/home/gui/dunst.nix new file mode 100644 index 0000000..9252af3 --- /dev/null +++ b/shared/home/gui/dunst.nix @@ -0,0 +1,21 @@ +{ ... }: { + services.dunst = { + enable = true; + settings = { + global = { + font = "Fira Code 9"; + origin = "bottom-right"; + offset = "10x10"; + frame_width = "2"; + frame_color = "#ffffff"; + corner_radius = "4"; + width = "400"; + }; + urgency_critical.background = "#d12142"; + urgency_normal = { + background = "#212121"; + format = "%s\\n%b"; + }; + }; + }; +} diff --git a/system/dev-lt-63/home.nix b/system/dev-lt-63/home.nix index a61642c..16bb488 100644 --- a/system/dev-lt-63/home.nix +++ b/system/dev-lt-63/home.nix @@ -26,21 +26,6 @@ xdg.systemDirs.data = [ "/usr/share" "/usr/local/share" ]; fonts.fontconfig.enable = true; - services.dunst = { - enable = true; - settings = { - global = { - font = "Fira Code 9"; - origin = "top-center"; - offset = "10x10"; - frame_width = "2"; - frame_color = "#ffffff"; - width = "400"; - }; - urgency_normal.background = "#212121"; - }; - }; - programs.man.enable = false; } \ No newline at end of file