Files
nixos/nixos/xdg-portal.nix
dim fe6455b4f2
All checks were successful
/ update-readme (push) Successful in 26s
change hyprland to niri
2025-11-30 13:14:41 +07:00

30 lines
615 B
Nix

{pkgs, ...}: {
# xdg.portal = {
# enable = true;
# config.common.default = "*";
# wlr.enable = true;
# xdgOpenUsePortal = true;
# extraPortals = [ pkgs.xdg-desktop-portal pkgs.xdg-desktop-portal-gtk ];
# };
xdg.portal = {
enable = true;
xdgOpenUsePortal = true;
wlr.enable = true;
config = {
common = {
default = [
"gtk"
"gnome"
];
};
niri = {
default = [
"gtk"
"gnome"
];
};
};
};
xdg.portal.extraPortals = [pkgs.xdg-desktop-portal-wlr pkgs.xdg-desktop-portal-gtk];
}