{ config, lib, pkgs, ... }: let cfg = config.os.srv.compat; in { options.os.srv.compat.enable = lib.mkEnableOption "enables compatibility with windows & x11"; config = lib.mkIf cfg.enable { programs.xwayland = { enable = true; package = pkgs.xwayland-satellite; }; environment.sessionVariables = { NIXOS_OZONE_WL = "1"; ELECTRON_ENABLE_WAYLAND = "1"; }; }; }