summaryrefslogtreecommitdiff
path: root/os/srv/compat.nix
diff options
context:
space:
mode:
Diffstat (limited to 'os/srv/compat.nix')
-rw-r--r--os/srv/compat.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/os/srv/compat.nix b/os/srv/compat.nix
new file mode 100644
index 0000000..ab9560f
--- /dev/null
+++ b/os/srv/compat.nix
@@ -0,0 +1,24 @@
+{ config, lib, pkgs, ... }:
+let
+ cfg = config.sys.srv.compat;
+in
+{
+ options.sys.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
+ ];
+ };
+}