From 13cc1efd78b943b98c08d74c9060a5b59bf86921 Mon Sep 17 00:00:00 2001 From: fidgetingbits Date: Tue, 9 Dec 2025 16:06:37 +0800 Subject: [PATCH] snixembed: add waybar incompatbility warning If snixembed is enabled and you try to use the waybar tray the two tools conflict with eachother and often waybar's tray will not show any icons. This adds a warning about it, as the problem can be difficult to diagnose. --- modules/services/snixembed.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/services/snixembed.nix b/modules/services/snixembed.nix index e9b1572ee..4f55b2008 100644 --- a/modules/services/snixembed.nix +++ b/modules/services/snixembed.nix @@ -7,6 +7,7 @@ let cfg = config.services.snixembed; + waybarCfg = config.programs.waybar; in { meta.maintainers = [ lib.maintainers.DamienCassou ]; @@ -32,6 +33,10 @@ in assertions = [ (lib.hm.assertions.assertPlatform "services.snixembed" pkgs lib.platforms.linux) ]; + warnings = lib.optional waybarCfg.enable '' + snixembed and waybar should not be enabled at the same time. + You may experience inconsistent tray behavior as a result. + ''; systemd.user.services.snixembed = { Install.WantedBy = [ "graphical-session.target" ];