blob: 45d38a453c2ecf7d5d57162bec61f2631a036c04 (
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
29
30
|
# xdg - XDG Desktop Portal configuration
{
config,
lib,
pkgs,
...
}:
{
config = lib.mkIf config.desktop.enable {
xdg.portal = {
enable = true;
extraPortals = with pkgs; [
xdg-desktop-portal-termfilechooser
xdg-desktop-portal-gtk
];
config.common = {
"org.freedesktop.impl.portal.FileChooser" = [ "termfilechooser" ];
default = [
"gtk"
];
};
xdgOpenUsePortal = true;
};
home.sessionVariables = {
GTK_USE_PORTAL = "1";
TERMCMD = lib.mkIf config.terminal.kitty.enable (lib.getExe config.terminal.kitty.package);
};
};
}
|