diff --git a/home/wayland/niri.nix b/home/wayland/niri.nix index f0d7ef9..7e6c67b 100644 --- a/home/wayland/niri.nix +++ b/home/wayland/niri.nix @@ -12,6 +12,22 @@ in niri xwayland-satellite ]; + systemd.user.services.xdg-desktop-portal-gtk = { + Unit = { + Description = "Portal service (GTK implementation)"; + PartOf = ["graphical-session.target"]; + After = ["graphical-session.target"]; + }; + Service = { + Type = "dbus"; + BusName = "org.freedesktop.impl.portal.desktop.gtk"; + ExecStart = "${pkgs.xdg-desktop-portal-gtk}/libexec/xdg-desktop-portal-gtk"; + Slice = "session.slice"; + }; + Install = { + WantedBy = ["xdg-desktop-portal.service"]; + }; + }; systemd.user.targets.niri-session = { Unit = { After = "graphical-session-pre.target graphical-session.target"; @@ -24,6 +40,7 @@ in }; }; xdg.portal = { + enable = true; config = { common = { default = ["gtk"];