summaryrefslogtreecommitdiff
path: root/modules/desktops/wayland.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/desktops/wayland.nix')
-rw-r--r--modules/desktops/wayland.nix21
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;
+ };
+}