From 05313fc5b34c6ceaf8ec0fa9ce9f47308baa0be5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mihai-Drosi=20C=C3=A2ju?= Date: Tue, 20 Aug 2024 04:54:20 +0300 Subject: [PATCH] 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 --- nixos/modules/virtualisation/waydroid.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/nixos/modules/virtualisation/waydroid.nix b/nixos/modules/virtualisation/waydroid.nix index 2a2ef86f2ce3..ae4555f3a672 100644 --- a/nixos/modules/virtualisation/waydroid.nix +++ b/nixos/modules/virtualisation/waydroid.nix @@ -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 ]; }; }