fix:portal_services

This commit is contained in:
dichgrem
2025-12-02 11:36:19 +08:00
parent ce1d4b644b
commit e3ff465632

View File

@@ -12,6 +12,22 @@ in
niri niri
xwayland-satellite 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 = { systemd.user.targets.niri-session = {
Unit = { Unit = {
After = "graphical-session-pre.target graphical-session.target"; After = "graphical-session-pre.target graphical-session.target";
@@ -24,6 +40,7 @@ in
}; };
}; };
xdg.portal = { xdg.portal = {
enable = true;
config = { config = {
common = { common = {
default = ["gtk"]; default = ["gtk"];