use wlr portal
This commit is contained in:
parent
a3e1eee22e
commit
85fe3e731e
1 changed files with 36 additions and 0 deletions
|
|
@ -16,6 +16,42 @@
|
|||
|
||||
gtk.iconCache.enable = true;
|
||||
|
||||
xdg.portal = {
|
||||
enable = true;
|
||||
xdgOpenUsePortal = true;
|
||||
wlr.enable = true;
|
||||
config = {
|
||||
common = {
|
||||
default = [
|
||||
"gtk"
|
||||
"wlr"
|
||||
];
|
||||
};
|
||||
niri = {
|
||||
default = [
|
||||
"gtk"
|
||||
"wlr"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
xdg.portal.extraPortals = [
|
||||
pkgs.xdg-desktop-portal-wlr
|
||||
pkgs.xdg-desktop-portal-gtk
|
||||
];
|
||||
systemd.user.services.xdg-desktop-portal = {
|
||||
after = [ "xdg-desktop-autostart.target" ];
|
||||
};
|
||||
systemd.user.services.xdg-desktop-portal-gtk = {
|
||||
after = [ "xdg-desktop-autostart.target" ];
|
||||
};
|
||||
systemd.user.services.xdg-desktop-portal-gnome = {
|
||||
after = [ "xdg-desktop-autostart.target" ];
|
||||
};
|
||||
systemd.user.services.niri-flake-polkit = {
|
||||
after = [ "xdg-desktop-autostart.target" ];
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
swayosd
|
||||
wl-clipboard
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue