1
1
Fork 0
nixos/options/custom/services/mako.nix
Myned ab485dec35
nix: format with alejandra
Signed-off-by: Myned <dev@bjork.tech>
2024-09-12 20:50:53 -05:00

30 lines
742 B
Nix

{
config,
lib,
...
}:
with lib; let
cfg = config.custom.services.mako;
in {
options.custom.services.mako.enable = mkOption {default = false;};
config.home-manager.users.${config.custom.username} = mkIf cfg.enable {
# https://github.com/emersion/mako
# FIXME: Cairo subpixel rendering; WL_OUTPUT_SUBPIXEL_NONE?
# https://github.com/emersion/mako/issues/258
services.mako = {
enable = true;
borderRadius = 12;
borderSize = 2;
defaultTimeout = 5 * 1000; # 5 seconds
width = 750;
anchor = "top-center";
backgroundColor = "#073642";
borderColor = "#002b36";
font = "sans-serif 12";
layer = "overlay";
margin = "20";
padding = "10";
};
};
}