refactor: update xdg.portal configuration for hyprland with structured common settings

This commit is contained in:
elwrcl committed 2026-04-11 23:51:31 +03:00
1 parent 34d4e3e887
commit ea04f268b2
1 file changed
+9 -2
+9 -2
View File
@@ -9,7 +9,14 @@
xdg.portal = { xdg.portal = {
enable = true; enable = true;
extraPortals = [ pkgs.xdg-desktop-portal-hyprland pkgs.xdg-desktop-portal-gtk ]; extraPortals = [ pkgs.xdg-desktop-portal-hyprland pkgs.xdg-desktop-portal-gtk ];
config.common.default = "*"; config = {
common = {
default = [ "hyprland" "gtk" ];
"org.freedesktop.portal.FileChooser" = [ "gtk" ];
"org.freedesktop.portal.Screenshot" = [ "hyprland" ];
"org.freedesktop.portal.ScreenCast" = [ "hyprland" ];
};
};
}; };
security.polkit.enable = true; security.polkit.enable = true;
@@ -21,5 +28,5 @@
"/home/elars/.nix-profile/share" "/home/elars/.nix-profile/share"
]; ];
GTK_USE_PORTAL = "1"; GTK_USE_PORTAL = "1";
}; };
} }