nix/user/common/mako/default.nix

19 lines
603 B
Nix

{ style, pkgs, setting, ... }: let
alpha = style.opacity.hex;
in {
file = (pkgs.formats.iniWithGlobalSection {}).generate "MakoConfig" {
globalSection = {
anchor = "top-center";
background-color = "#${style.color.bg.dark}${alpha}";
border-color = "#${style.color.border}${alpha}";
default-timeout = setting.timeout.popup;
font = "${style.font.serif.name} ${toString style.font.size.popup}";
height = 120;
icons = 0;
margin = 32;
text-color = "#${style.color.fg.light}";
width = 480;
};
};
}