blob: 2f43fb34f5c5363b33ba66217a4f53995390e888 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
{
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
xdg-desktop-portal-gtk
];
config.common = {
default = lib.mkForce ["gtk"];
"org.freedesktop.impl.portal.Secret" = ["gnome-keyring"];
"org.freedesktop.impl.portal.FileChooser" = ["gtk"];
"org.freedesktop.impl.portal.OpenURI" = ["gtk"];
};
};
programs.xwayland.enable = true;
};
}
|