summaryrefslogtreecommitdiff
path: root/home-manager/modules/aesthetics/targets/mako.nix
blob: 2ade32e5e7bc1c228c5f0df2f4731993f8f1af26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{
  config,
  lib,
  ...
}: let
  cfg = config.aesthetics.targets.mako;
  aes = config.aesthetics;
in {
  options.aesthetics.targets.mako.enable = lib.mkOption {
    type = lib.types.bool;
    default = aes.enableAllTargets && aes.hasGui;
    description = "Whether to enable the aesthetics mako target.";
  };
  config = lib.mkIf (cfg.enable && config.services.mako.enable) {
    services.mako.settings = with aes.scheme; {
      background-color = "#${base00}";
      border-color = "#${base0C}";
      text-color = "#${base05}";
      progress-color = "over #${base02}";
      font = "${aes.font.name} ${aes.font.size.small}";
    };
  };
}