nixos/waydroid: Update service definition according to upstream

* Upstream switched the service's Type to dbus in 1.4.0
* Enable D-Bus activation
* Fixes #334687
This commit is contained in:
Mihai-Drosi Câju 2024-08-20 04:54:20 +03:00
parent 44f636f8cb
commit 05313fc5b3

View File

@ -55,15 +55,18 @@ in
wantedBy = [ "multi-user.target" ];
serviceConfig = {
Type = "dbus";
UMask = "0022";
ExecStart = "${pkgs.waydroid}/bin/waydroid -w container start";
ExecStop = "${pkgs.waydroid}/bin/waydroid container stop";
ExecStopPost = "${pkgs.waydroid}/bin/waydroid session stop";
BusName = "id.waydro.Container";
};
};
systemd.tmpfiles.rules = [
"d /var/lib/misc 0755 root root -" # for dnsmasq.leases
];
services.dbus.packages = with pkgs; [ waydroid ];
};
}