From bd54f2347d12b28fac023e7f6e2b04390e11781c Mon Sep 17 00:00:00 2001 From: NullBite Date: Thu, 16 May 2024 02:19:14 -0400 Subject: [PATCH] home: add dunst so it compiles --- home/programs/default.nix | 1 + home/programs/dunst.nix | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 home/programs/dunst.nix diff --git a/home/programs/default.nix b/home/programs/default.nix index beaae9d..f3c0a54 100644 --- a/home/programs/default.nix +++ b/home/programs/default.nix @@ -4,5 +4,6 @@ ./comma.nix ./mopidy.nix ./hypridle.nix + ./dunst.nix ]; } diff --git a/home/programs/dunst.nix b/home/programs/dunst.nix new file mode 100644 index 0000000..1629287 --- /dev/null +++ b/home/programs/dunst.nix @@ -0,0 +1,34 @@ +{ config, lib, pkgs, ... }: +let + cfg = config.nixfiles.programs.dunst; + mkd = lib.mkDefault; +in { + options.nixfiles.programs.dunst = { + enable = lib.mkOption { + description = "Whether to enable the dunst configuration"; + type = lib.types.bool; + default = false; + example = true; + }; + }; + + config = lib.mkIf cfg.enable { + services.dunst = { + enable = mkd true; + settings = { + global = { + # behavior + monitor = mkd 1; + markup = mkd "full"; + show_age_threshold = mkd "60"; + + # appearance + follow = mkd "none"; + font = mkd "Ubuntu 10"; + alignment = mkd "left"; + word_wrap = mkd true; + }; + }; + }; + }; +}