2024-05-21 21:53:46 +00:00
|
|
|
{ config, lib, ... }:
|
2024-04-11 04:40:42 +00:00
|
|
|
let
|
2024-05-13 20:33:16 +00:00
|
|
|
inherit (config.catppuccin) sources;
|
2024-04-11 04:40:42 +00:00
|
|
|
cfg = config.services.dunst.catppuccin;
|
|
|
|
enable = cfg.enable && config.services.dunst.enable;
|
|
|
|
in
|
|
|
|
{
|
2024-06-28 16:29:30 +00:00
|
|
|
options.services.dunst.catppuccin = lib.ctp.mkCatppuccinOpt { name = "dunst"; };
|
2024-04-11 04:40:42 +00:00
|
|
|
|
|
|
|
config.services.dunst = lib.mkIf enable {
|
2024-05-22 00:23:55 +00:00
|
|
|
settings = lib.ctp.fromINI (sources.dunst + "/themes/${cfg.flavor}.conf");
|
2024-04-11 04:40:42 +00:00
|
|
|
};
|
|
|
|
}
|