blob: 721fab18d959db05e047c6b1ef2da1fdf8b2b128 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
{
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";
};
};
}
|