Converted swaync to a home module
This commit is contained in:
parent
4b83423f1c
commit
013c907a95
5 changed files with 49 additions and 45 deletions
26
modules/home/services/swaync/default.nix
Normal file
26
modules/home/services/swaync/default.nix
Normal 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"];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue