Files
nix-config/modules/home/programs/mako/default.nix
mjallen18 47e2b0caf8 temp
2025-12-01 14:50:23 -06:00

33 lines
790 B
Nix
Executable File

{ config, lib, ... }:
with lib;
let
cfg = config.mjallen.programs.mako;
palette = import cfg.theme.file;
in
{
imports = [ ./options.nix ];
config = mkIf cfg.enable {
services.mako = {
enable = true;
settings = {
font = mkDefault cfg.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;
background-color = mkDefault palette.colors.bg;
text-color = mkDefault palette.colors.text;
border-color = mkDefault palette.colors.primary;
progress-color = mkDefault "over ${palette.colors.info}";
};
};
};
}