mirror of
				https://github.com/nmasur/dotfiles
				synced 2025-11-04 07:03:17 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			40 lines
		
	
	
		
			746 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			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;
 | 
						|
        };
 | 
						|
      };
 | 
						|
    };
 | 
						|
 | 
						|
  };
 | 
						|
}
 |