mirror of
https://github.com/elwrcl/copnix.git
synced 2026-10-31 22:28:03 +03:00
1 parent
39c7d9da18
commit
830ca94bbd
1 file changed
+14
-3
@@ -4,14 +4,25 @@
|
||||
programs.niri.enable = true;
|
||||
|
||||
xdg.portal = {
|
||||
extraPortals = [
|
||||
pkgs.xdg-desktop-portal-gtk
|
||||
pkgs.xdg-desktop-portal-wlr
|
||||
];
|
||||
|
||||
config.niri = lib.mkForce {
|
||||
default = [
|
||||
"gnome"
|
||||
"wlr"
|
||||
"gtk"
|
||||
];
|
||||
"org.freedesktop.impl.portal.ScreenCast" = [ "gnome" ];
|
||||
"org.freedesktop.impl.portal.Screenshot" = [ "gnome" ];
|
||||
"org.freedesktop.impl.portal.ScreenCast" = [ "wlr" ];
|
||||
"org.freedesktop.impl.portal.Screenshot" = [ "wlr" ];
|
||||
"org.freedesktop.impl.portal.FileChooser" = [ "gtk" ];
|
||||
};
|
||||
};
|
||||
environment.etc."xdg-desktop-portal/portals/wlr.portal".text = ''
|
||||
[portal]
|
||||
DBusName=org.freedesktop.impl.portal.desktop.wlr
|
||||
Interfaces=org.freedesktop.impl.portal.Screenshot;org.freedesktop.impl.portal.ScreenCast;
|
||||
UseIn=wlroots;sway;Wayfire;river;phosh;Hyprland;niri;
|
||||
'';
|
||||
}
|
||||
Reference in new issue
Block a user