2024-05-18 16:24:54 +02:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
...
|
|
|
|
}: let
|
2024-05-20 21:15:16 +02:00
|
|
|
cfg = config.myConfig.sway.mako;
|
2024-05-18 16:24:54 +02:00
|
|
|
in {
|
2024-05-20 21:15:16 +02:00
|
|
|
options.myConfig.sway.mako = {
|
|
|
|
enable = lib.mkEnableOption "mako, a notification deamon";
|
2024-05-18 16:24:54 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
services.mako = {
|
|
|
|
enable = true;
|
|
|
|
actions = true;
|
|
|
|
anchor = "top-right";
|
|
|
|
|
|
|
|
borderRadius = 10;
|
|
|
|
borderSize = 2;
|
|
|
|
height = 100;
|
|
|
|
width = 400;
|
|
|
|
|
|
|
|
defaultTimeout = 10000; # ms
|
|
|
|
font = "FiraCode Nerd Font 11";
|
|
|
|
icons = true;
|
|
|
|
markup = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|