From 2e4c4298cf84f94d68387e8076fd430e9968ce6c Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Fri, 27 Jun 2025 16:39:14 -0400 Subject: refactor --- modules/desktops/wayland.nix | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 modules/desktops/wayland.nix (limited to 'modules/desktops/wayland.nix') 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; + }; +} -- cgit v1.2.3-freya