Create module for swaynotificationcenter
This commit is contained in:
parent
0ed094e29a
commit
4f307a45d1
2 changed files with 21 additions and 0 deletions
20
home-manager/modules/swaynotificationcenter/default.nix
Normal file
20
home-manager/modules/swaynotificationcenter/default.nix
Normal 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 = { };
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -86,6 +86,7 @@ in
|
||||||
solvespace.enable = true;
|
solvespace.enable = true;
|
||||||
ssh.enable = true;
|
ssh.enable = true;
|
||||||
sway.enable = true;
|
sway.enable = true;
|
||||||
|
swaynotificationcenter.enable = true;
|
||||||
tea = {
|
tea = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
|
|
Loading…
Reference in a new issue