1
1
Fork 0
nixos/options/custom/services/mako.nix
Myned 53c8575116
git: migrate to forgejo
Squashes 1,331 commits

Signed-off-by: Myned <dev@bjork.tech>
2024-09-12 19:41:21 -05:00

30 lines
740 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";
};
};
}