always allow dbus connections from root

needed for cage-xtwrapper
This commit is contained in:
xunuwu 2025-05-15 18:12:14 +02:00
parent bdde47425b
commit dff157e297

View file

@ -1,5 +1,6 @@
{ {
lib, lib,
pkgs,
inputs, inputs,
systemProfiles, systemProfiles,
specialArgs, specialArgs,
@ -95,6 +96,17 @@
networking.hostName = "nixdesk"; networking.hostName = "nixdesk";
# for running waydroid as root, needed for cage-xtmapper
services.dbus.packages = [
(pkgs.writeTextDir "/etc/dbus-1/session.d/dbus-allow-root.conf" ''
<busconfig>
<policy context="mandatory">
<allow user="root"/>
</policy>
</busconfig>
'')
];
nixpkgs.config = { nixpkgs.config = {
# rocmSupport = true; # rocmSupport = true;
allowUnfreePredicate = pkg: allowUnfreePredicate = pkg: