Some checks failed
Build NixOS Configurations / build (carbon) (push) Failing after 46s
Build NixOS Configurations / build (framework) (push) Successful in 2m38s
Build NixOS Configurations / build (git) (push) Successful in 1m26s
Build NixOS Configurations / build (gospel) (push) Failing after 35s
Build NixOS Configurations / build (node) (push) Failing after 33s
47 lines
824 B
Nix
47 lines
824 B
Nix
{
|
|
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
|
|
pkgs.dconf
|
|
];
|
|
|
|
gtk = {
|
|
enable = true;
|
|
gtk4.theme = null;
|
|
iconTheme = {
|
|
name = lib.mkForce "Adwaita";
|
|
package = lib.mkForce pkgs.adwaita-icon-theme;
|
|
};
|
|
};
|
|
|
|
services.swaync = {
|
|
enable = true;
|
|
settings = {
|
|
widgets = [
|
|
"title"
|
|
"dnd"
|
|
"notifications"
|
|
"mpris"
|
|
];
|
|
};
|
|
};
|
|
|
|
# xdg.configFile."swaync/style.css".source = "${pkgs.aa.catppuccin-swaync}/catppuccin.css";
|
|
};
|
|
}
|