1
0
mirror of https://github.com/nmasur/dotfiles synced 2025-07-19 02:10:13 +00:00
Files
.github
colorscheme
deploy
docs
hosts
lib
misc
modules
overlays
pkgs
platforms
generators
home-manager
modules
nmasur
presets
programs
services
hammerspoon
mbsync
dunst.nix
gnupg.nix
i3.nix
keybase.nix
loadkey.nix
picom.nix
polybar.nix
volnoti.nix
fonts.nix
gtk.nix
profiles
settings.nix
nixpkgs.nix
theme.nix
nix-darwin
nixos
windows
templates
.envrc
.gitignore
.stylua.toml
LICENSE
README.md
flake.lock
flake.nix
dotfiles/platforms/home-manager/modules/nmasur/presets/services/dunst.nix
2025-02-17 14:05:23 -05:00

40 lines
746 B
Nix

{
config,
lib,
...
}:
let
cfg = config.nmasur.presets.services.dunst;
in
{
options.nmasur.presets.services.dunst.enable = lib.mkEnableOption "Dunst notification system";
config = lib.mkIf cfg.enable {
services.dunst = {
enable = false;
settings = {
global = {
width = 300;
height = 200;
offset = "30x50";
origin = "top-right";
transparency = 0;
padding = 20;
horizontal_padding = 20;
frame_color = config.theme.colors.base03;
};
urgency_normal = {
background = config.theme.colors.base00;
foreground = config.theme.colors.base05;
timeout = 10;
};
};
};
};
}