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
+14 -7
+14 -7
View File
@@ -9,17 +9,24 @@
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;
services.gnome.gnome-keyring.enable = true; services.gnome.gnome-keyring.enable = true;
environment.sessionVariables = { environment.sessionVariables = {
XDG_DATA_DIRS = [ XDG_DATA_DIRS = [
"/run/current-system/sw/share" "/run/current-system/sw/share"
"/home/elars/.nix-profile/share" "/home/elars/.nix-profile/share"
]; ];
GTK_USE_PORTAL = "1"; GTK_USE_PORTAL = "1";
}; };
} }