summaryrefslogtreecommitdiff
path: root/modules/programs/mako/default.nix
blob: 3987d0d3ccda5d0c04a6c1dda1917aad809ea4bd (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
{ config, lib, ... }:

{
  config = lib.mkIf config.desktop.enable {

    home-manager.users.${config.user} = {
      services.mako = {

        enable = true;

        font = "${config.theme.font} 11";

        margin = toString config.theme.outerGap;
        padding = toString config.theme.innerGap;

        backgroundColor = "#${config.theme.colors.base00}";
        progressColor = "#${config.theme.colors.base00}";
        textColor = "#${config.theme.colors.base05}";

        borderColor = "#${config.theme.accentColor}";
        borderSize = config.theme.borderWidth;
        borderRadius = 0;

        defaultTimeout = 5000;
        layer = "overlay";
        icons = true;

      };
    };

  };
}