1
1
Fork 0
nixos/options/custom/services/swaync/default.nix
Myned 53c8575116
git: migrate to forgejo
Squashes 1,331 commits

Signed-off-by: Myned <dev@bjork.tech>
2024-09-12 19:41:21 -05:00

41 lines
1 KiB
Nix

{ config, lib, ... }:
with lib;
let
cfg = config.custom.services.swaync;
in
{
options.custom.services.swaync.enable = mkOption { default = false; };
config.home-manager.users.${config.custom.username} = mkIf cfg.enable {
# https://github.com/ErikReider/SwayNotificationCenter
services.swaync = {
enable = true;
style = ./style.css;
# https://github.com/ErikReider/SwayNotificationCenter/blob/main/src/configSchema.json
settings = {
control-center-width = 750 / config.custom.scale;
control-center-height = config.custom.height / 2;
fit-to-screen = false;
hide-on-clear = true;
notification-2fa-action = false;
#// notification-inline-replies = true;
positionX = "center";
positionY = "top";
timeout-low = 5;
timeout = 5; # normal
timeout-critical = 0;
widgets = [
"notifications"
"backlight"
"inhibitors"
"dnd"
"title"
];
};
};
};
}