nix: add portals.conf file

This commit is contained in:
David Delarosa
2025-11-20 14:40:34 +02:00
committed by DreamMaoMao
parent 8e4d3b7aac
commit c004f7460c

View File

@@ -26,6 +26,25 @@ in {
xdg.portal = { xdg.portal = {
enable = lib.mkDefault true; enable = lib.mkDefault true;
config = {
mango = {
default = [
"gtk"
];
# except those
"org.freedesktop.impl.portal.Secret" = ["gnome-keyring"];
"org.freedesktop.impl.portal.ScreenCast" = ["wlr"];
"org.freedesktop.impl.portal.ScreenShot" = ["wlr"];
# wlr does not have this interface
"org.freedesktop.impl.portal.Inhibit" = [];
};
};
extraPortals = with pkgs; [
xdg-desktop-portal-wlr
xdg-desktop-portal-gtk
];
wlr.enable = lib.mkDefault true; wlr.enable = lib.mkDefault true;
configPackages = [cfg.package]; configPackages = [cfg.package];