diff options
Diffstat (limited to 'modules/compat.nix')
| -rw-r--r-- | modules/compat.nix | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/modules/compat.nix b/modules/compat.nix new file mode 100644 index 0000000..1ea6105 --- /dev/null +++ b/modules/compat.nix @@ -0,0 +1,28 @@ +{ + 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.systemPackages = with pkgs; [ + wineWow64Packages.stagingFull + winetricks + ]; + + environment.sessionVariables = { + NIXOS_OZONE_WL = "1"; + ELECTRON_ENABLE_WAYLAND = "1"; + }; + }; +} |
