mirror of
https://github.com/elwrcl/copnix.git
synced 2026-10-31 14:28:02 +03:00
refactor: update xdg.portal configuration for hyprland with structured common settings
This commit is contained in:
1 parent
34d4e3e887
commit
ea04f268b2
1 file changed
+14
-7
@@ -9,17 +9,24 @@
|
||||
xdg.portal = {
|
||||
enable = true;
|
||||
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;
|
||||
services.gnome.gnome-keyring.enable = true;
|
||||
|
||||
environment.sessionVariables = {
|
||||
XDG_DATA_DIRS = [
|
||||
"/run/current-system/sw/share"
|
||||
"/home/elars/.nix-profile/share"
|
||||
];
|
||||
GTK_USE_PORTAL = "1";
|
||||
};
|
||||
XDG_DATA_DIRS = [
|
||||
"/run/current-system/sw/share"
|
||||
"/home/elars/.nix-profile/share"
|
||||
];
|
||||
GTK_USE_PORTAL = "1";
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user