diff options
Diffstat (limited to '')
-rw-r--r-- | modules/desktops/wayland.nix | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/modules/desktops/wayland.nix b/modules/desktops/wayland.nix new file mode 100644 index 0000000..ceef20a --- /dev/null +++ b/modules/desktops/wayland.nix @@ -0,0 +1,21 @@ +{ + lib, + config, + pkgs, + ... +}: let + inherit (lib) mkIf; + cfg = config.desktops; +in { + config = mkIf cfg.wayland { + xdg.portal = { + enable = true; + wlr.enable = true; + extraPortals = [ + pkgs.xdg-desktop-portal-wlr + ]; + }; + + programs.xwayland.enable = true; + }; +} |