blob: a918d02167ea73e6c811dfa3d004632175dcfd1f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# mako notification daemon
{
config,
lib,
pkgs,
...
}:
let
cfg = config.desktop.mako;
in
{
imports = [ ./colors.nix ];
options.desktop.mako = {
enable = lib.mkEnableOption "Enables mako.";
package = lib.mkOption {
type = lib.types.package;
readOnly = true;
default = config.services.mako.package or pkgs.mako;
description = "The mako package to use.";
};
};
config = lib.mkIf cfg.enable {
services.mako = {
enable = true;
settings = {
font = "${config.fonts.normal} ${toString config.fonts.size}";
margin = 10;
padding = 8;
border-size = 1;
border-radius = 0;
max-icon-size = 32;
icons = true;
markup = true;
actions = true;
format = "<b>%s</b>\\n%b";
default-timeout = 5000;
};
};
};
}
|