2022-12-14 20:09:17 +01:00
|
|
|
{ pkgs, config, lib, ... }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
|
|
cfg = config.eboskma.programs.swaynotificationcenter;
|
|
|
|
settingsFormat = pkgs.formats.json { };
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options.eboskma.programs.swaynotificationcenter = { enable = mkEnableOption "SwayNotificationCenter"; };
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
home.packages = with pkgs; [ swaynotificationcenter ];
|
|
|
|
|
|
|
|
xdg.configFile."swaync/config.json" = {
|
|
|
|
source = settingsFormat.generate "swaync-config.json" {
|
|
|
|
"$schema" = "${pkgs.swaynotificationcenter}/etc/xdg/swaync/configScheme.json";
|
|
|
|
scripts = { };
|
2023-07-04 20:27:19 +02:00
|
|
|
widgets = [
|
|
|
|
"title"
|
|
|
|
"dnd"
|
|
|
|
"inhibitors"
|
|
|
|
"mpris"
|
|
|
|
"volume"
|
|
|
|
"notifications"
|
|
|
|
];
|
2023-10-23 08:11:14 +02:00
|
|
|
notification-2fa-action = false;
|
2022-12-14 20:09:17 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|