mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-12 03:51:07 +01:00
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.
This commit is contained in:
parent
e5b1f87841
commit
13cc1efd78
1 changed files with 5 additions and 0 deletions
|
|
@ -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" ];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue