blob: f174e0284586aaf6805e61132b3c20624fca7878 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
{ 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";
WINE_RT_PRIO = "1";
};
environment.systemPackages = with pkgs; [
winetricks
wineWowPackages.waylandFull
];
};
}
|