1

System: Add xdg-desktop-portal-termfilechooser

This commit is contained in:
2025-07-03 21:32:17 +02:00
parent e4eb3c16f3
commit cbc07bd824

View File

@ -307,14 +307,22 @@ with mylib.networking; {
portal = {
enable = true;
xdgOpenUsePortal = false;
config.common.default = ["*"]; # https://discourse.nixos.org/t/clicked-links-in-desktop-apps-not-opening-browers/29114/26
wlr.enable = false; # Hyprland has its own portal automatically enabled...
config = {
common.default = ["*"]; # https://discourse.nixos.org/t/clicked-links-in-desktop-apps-not-opening-browers/29114/26
common."org.freedesktop.impl.portal.FileChooser" = ["termfilechooser"];
hyprland.default = ["hyprland"];
hyprland."org.freedesktop.impl.portal.FileChooser" = ["termfilechooser"];
};
extraPortals = with pkgs; [
xdg-desktop-portal-gtk
xdg-desktop-portal-termfilechooser # Filepicker using yazi
# xdg-desktop-portal-kde
# xdg-desktop-portal-hyprland # Already enabled by hyprland system module
# xdg-desktop-portal-termfilechooser # Filepicker using nnn
];
};
};