Converted swaync to a home module

This commit is contained in:
alejandro-angulo 2024-08-02 20:01:03 -07:00
parent 4b83423f1c
commit 013c907a95
Signed by: alejandro-angulo
GPG key ID: 75579581C74554B6
5 changed files with 49 additions and 45 deletions

View file

@ -0,0 +1,26 @@
{
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"];
};
};
};
}