Add a mako notification daemon module to the desktop group, enabled by the aggregator. Toasts auto-dismiss into history after five seconds, a do-not-disturb mode ([mode=dnd] invisible=true) suppresses display while still recording to history, and Super+N recalls the last notification via makoctl restore. Colors and the popup font come from Stylix's mako target. The bar-side do-not-disturb toggle and media controls already live in waybar.nix, so this task adds only the daemon.
22 lines
872 B
Nix
22 lines
872 B
Nix
{ config, lib, ... }:
|
|
# The desktop aggregator: one flag brings up the whole graphical session.
|
|
let
|
|
cfg = config.modules.desktop;
|
|
in
|
|
{
|
|
options.modules.desktop.enable = lib.mkEnableOption "the keyboard-driven Hyprland desktop";
|
|
|
|
# Each piece is turned on at default priority, so a host can still override
|
|
# any one of them while the single flag above enables the whole desktop.
|
|
config = lib.mkIf cfg.enable {
|
|
modules.desktop.hyprland.enable = lib.mkDefault true;
|
|
modules.desktop.login.enable = lib.mkDefault true;
|
|
modules.desktop.mako.enable = lib.mkDefault true;
|
|
modules.desktop.rofi.enable = lib.mkDefault true;
|
|
modules.desktop.terminal.enable = lib.mkDefault true;
|
|
modules.desktop.theming.enable = lib.mkDefault true;
|
|
modules.desktop.waybar.enable = lib.mkDefault true;
|
|
modules.desktop.audio.enable = lib.mkDefault true;
|
|
};
|
|
}
|