reNixos/hand7s/xdg/portal.nix
s0me1newithhand7s c5f949506a staging(no atomic commits thank to git-hooks)
Signed-off-by: s0me1newithhand7s <git+me@hand7s.org>
2026-03-25 17:56:18 +03:00

35 lines
566 B
Nix

{
config,
pkgs,
lib,
...
}: {
xdg = {
portal = {
enable = lib.mkIf config.home.gui.enable true;
extraPortals = with pkgs; [
xdg-desktop-portal-gtk
xdg-desktop-portal-termfilechooser
];
config = {
common = {
default = [
"gtk"
];
};
hyprland = {
default = [
"gtk"
"hyprland"
];
"org.freedesktop.impl.portal.FileChooser" = [
"termfilechooser"
];
};
};
};
};
}