dotfiles/user-modules/mako/default.nix

32 lines
663 B
Nix
Raw Permalink Normal View History

2024-07-19 12:00:55 +00:00
{
config,
lib,
pkgs,
...
}:
2024-07-18 22:36:02 +00:00
with lib;
let
cfg = config.modules.mako;
theme = config.theming;
colors = theme.colors;
2024-07-19 12:00:55 +00:00
in
{
2024-07-18 22:36:02 +00:00
options.modules.mako.enable = mkEnableOption "mako";
config = mkIf cfg.enable {
services.mako = {
enable = true;
anchor = "top-right";
defaultTimeout = 5000;
backgroundColor = "#${colors.bg}ff";
textColor = "#${colors.fg}ff";
borderColor = "#${colors.fg}ff";
progressColor = "#${colors.accent}ff";
borderRadius = 0;
borderSize = theme.layout.borderSize;
font = "${theme.fonts.monospace.name} ${toString theme.fonts.monospace.recommendedSize}";
};
};
2024-07-19 12:00:55 +00:00
}