2024-08-03 03:01:03 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
namespace,
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
inherit (lib) mkEnableOption mkIf;
|
|
|
|
|
|
|
|
cfg = config.${namespace}.services.swaync;
|
|
|
|
in {
|
|
|
|
options.${namespace}.services.swaync = {
|
|
|
|
enable = mkEnableOption "sway notification center";
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
home.packages = [pkgs.libnotify];
|
|
|
|
|
|
|
|
services.swaync = {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
|
|
|
widgets = ["title" "dnd" "notifications" "mpris"];
|
|
|
|
};
|
2024-08-12 02:21:41 +00:00
|
|
|
style = builtins.readFile "${pkgs.aa.catppuccin-swaync}/catppuccin.css";
|
2024-08-03 03:01:03 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|