20 lines
581 B
Nix
20 lines
581 B
Nix
{ 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 = { };
|
|
};
|
|
};
|
|
};
|
|
}
|