nixos/home/system/dunst/default.nix
2025-07-04 14:21:21 +07:00

37 lines
1012 B
Nix

{ config, lib, ... }:
let
accent = "#${config.lib.stylix.colors.base0D}";
accent-alt = "#${config.lib.stylix.colors.base03}";
background = "#${config.lib.stylix.colors.base00}";
background-alt = "#${config.lib.stylix.colors.base01}";
foreground = "#${config.lib.stylix.colors.base05}";
font = "${config.stylix.fonts.sansSerif.name}";
font-size = "${toString config.stylix.fonts.sizes.desktop}";
inherit (config.var.theme) rounding border-size gaps-in gaps-out;
in {
services.dunst = {
enable = true;
settings = {
global = {
height = 300;
offset = "15x15";
origin = "top-right";
follow = "keyboard";
shrink = "no";
transparency = 0;
separator_height = 2;
padding = gaps-in;
horizontal_padding = gaps-in;
corner_radius = rounding;
gap_size = gaps-out;
frame_width = border-size;
markup = "full";
word_wrap = "yes";
ellipsize = "middle";
};
};
};
}