Create module for swaynotificationcenter

This commit is contained in:
Erwin Boskma 2022-12-14 20:09:17 +01:00
parent 0ed094e29a
commit 4f307a45d1
Signed by: erwin
SSH key fingerprint: SHA256:CyeNoWXd3kjX2Nwu6pDxxdS7OqmPVOy0NavA/KU/ntU
2 changed files with 21 additions and 0 deletions

View file

@ -0,0 +1,20 @@
{ 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 = { };
};
};
};
}

View file

@ -86,6 +86,7 @@ in
solvespace.enable = true;
ssh.enable = true;
sway.enable = true;
swaynotificationcenter.enable = true;
tea = {
enable = true;
settings = {