marleyos/modules/home/shell/wayland.nix
2025-05-26 15:42:52 -07:00

17 lines
405 B
Nix

{
lib,
config,
...
}: {
options.marleyos.wayland.enable = lib.mkEnableOption "wayland";
config = lib.mkIf config.marleyos.wayland.enable {
# Fix the "tray.target not found" error.
systemd.user.targets.tray = lib.mkIf (!config.xsession.enable) {
Unit = {
Description = "Home Manager System Tray";
Requires = ["graphical-session-pre.target"];
};
};
};
}