41 lines
885 B
Nix
Executable File
41 lines
885 B
Nix
Executable File
{
|
|
config,
|
|
lib,
|
|
namespace,
|
|
...
|
|
}:
|
|
{
|
|
imports = [
|
|
(lib.${namespace}.mkHomeModule {
|
|
inherit config;
|
|
domain = "programs";
|
|
name = "mako";
|
|
options = {
|
|
fontName = lib.mkOption {
|
|
type = lib.types.str;
|
|
default = "DejaVu Sans";
|
|
description = "Font name for mako notifications.";
|
|
};
|
|
};
|
|
moduleConfig = {
|
|
services.mako = {
|
|
enable = true;
|
|
settings = {
|
|
font = lib.mkDefault config.${namespace}.programs.mako.fontName;
|
|
icons = true;
|
|
ignore-timeout = true;
|
|
sort = "-time";
|
|
width = 500;
|
|
height = 110;
|
|
layer = "overlay";
|
|
border-radius = 15;
|
|
border-size = 1;
|
|
max-icon-size = 64;
|
|
default-timeout = 5000;
|
|
};
|
|
};
|
|
};
|
|
})
|
|
];
|
|
}
|