From 6b2898a6b7d6fc1956d808d285a1b4ceaf0ca56e Mon Sep 17 00:00:00 2001 From: Mateus Auler Date: Fri, 4 Jul 2025 17:51:21 +0000 Subject: [PATCH] mako: add testbed (#1192) Link: https://github.com/nix-community/stylix/pull/1192 Reviewed-by: awwpotato Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com> --- modules/mako/testbeds/default.nix | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 modules/mako/testbeds/default.nix diff --git a/modules/mako/testbeds/default.nix b/modules/mako/testbeds/default.nix new file mode 100644 index 00000000..c6fbbef4 --- /dev/null +++ b/modules/mako/testbeds/default.nix @@ -0,0 +1,25 @@ +{ lib, pkgs, ... }: + +{ + # We use Hyprland because Gnome has its own notification daemon + environment.loginShellInit = lib.getExe pkgs.hyprland; + programs.hyprland.enable = true; + + home-manager.sharedModules = lib.singleton { + services.mako.enable = true; + wayland.windowManager.hyprland = { + enable = true; + settings.exec-once = + # Run as a single command to ensure the same order between executions + lib.concatMapStringsSep " && " + ( + urgency: "${lib.getExe pkgs.libnotify} --urgency ${urgency} ${urgency} urgency" + ) + [ + "low" + "normal" + "critical" + ]; + }; + }; +}