From 68d03fe362b7e0df11662d8d6a1e01eac0bfae77 Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Wed, 17 Sep 2025 22:07:16 -0400 Subject: refactor: remove modules folder, fully split home and system modules --- system/desktops/wayland.nix | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 system/desktops/wayland.nix (limited to 'system/desktops/wayland.nix') diff --git a/system/desktops/wayland.nix b/system/desktops/wayland.nix new file mode 100644 index 0000000..8a81fdf --- /dev/null +++ b/system/desktops/wayland.nix @@ -0,0 +1,24 @@ +{ + lib, + config, + pkgs, + ... +}: let + inherit (lib) mkIf; + cfg = config.desktops.wayland; +in { + config = mkIf cfg.enable { + xdg.portal = { + enable = true; + xdgOpenUsePortal = true; + extraPortals = with pkgs; [ + xdg-desktop-portal-gtk + ]; + config = { + default.common = ["gtk"]; + }; + }; + + programs.xwayland.enable = true; + }; +} -- cgit v1.2.3-freya