nixcfg/homeManagerModules/apps/mako/default.nix
Aly Raffauf 1ea8e6fcba mako: use theme module
mako: fix build error by converting int to str with toString
2024-05-04 21:19:07 -04:00

27 lines
769 B
Nix

{
pkgs,
lib,
config,
...
}: {
options = {alyraffauf.apps.mako.enable = lib.mkEnableOption "Enables mako.";};
config = lib.mkIf config.alyraffauf.apps.mako.enable {
services.mako = {
enable = true;
anchor = "top-center";
backgroundColor = "${config.alyraffauf.desktop.theme.colors.background}CC";
borderColor = "${config.alyraffauf.desktop.theme.colors.primary}";
borderRadius = 10;
defaultTimeout = 10000;
font = "${config.alyraffauf.desktop.theme.font.name} Regular ${toString config.alyraffauf.desktop.theme.font.size}";
height = 300;
layer = "top";
padding = "15";
textColor = "${config.alyraffauf.desktop.theme.colors.text}";
width = 400;
margin = "20,0";
};
};
}