diff options
Diffstat (limited to 'system/desktops/wayland.nix')
-rw-r--r-- | system/desktops/wayland.nix | 24 |
1 files changed, 24 insertions, 0 deletions
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; + }; +} |