nixos/waydroid: Init module Waydroid#141076
Conversation
5db90be to
7c718cd
Compare
|
@samueldr ping 😉 |
|
Nice! I don't know much about systemd, but I'd think you want to tighten the unit up a little bit with some sandboxing/security features? There should be examples in other modules, I think. Never got around to changing my kernel to the right kernel for testing waydroid out. |
|
Networking in waydroid is broken if firewall enabled in nixos, adding interface to trusted list seems to fix it.
Also there is missing |
7c718cd to
8f83d76
Compare
systemd can make use of cgroups to limit resource usage or it can be configured to run a service as a different user. I'm not sure if waydroid can be run as a user other than root, specifically setting-up waydroid0 and loading kernel modules when necessary. |
8f83d76 to
1892cc9
Compare
|
(probably related to waydroid packaging). I did this:
In the log I see this: waydroid log excerptIt's unclear to me why it's trying to look in the folder Modprobing the module myself seems to work fine. Which makes it even weirder, since I would assume that the same modprobe is used on the same kernel...? I need to read more documentation to get it up and running further, I guess. |
Did you reboot into the Xanmod configuration? |
|
Yes, I did reboot into that configuration (I guess I'd have other folders there otherwise anyway). Somehow it seems like some kernel info might've leaked into the build output, not sure... |
|
As a nice-to-have, |
|
So, nobody else is gonna review this PR? :( |
1892cc9 to
616cbb2
Compare
616cbb2 to
7e76b12
Compare
|
Did some formatting nits. Should be good now. |
|
I tried this module with And this is the result of |
The first error is caused by missing kernel modules, you can either install xanmod( |
|
For the kernel: Here is a PR that will enable binder,ashmem on the default NixOS Kernel so waydroid works out of the box #145768 |
|
Hey there. I am also having trouble running this. I can seemingly reach the point where I run Not really sure what’s going on there. By the way, since |
|
I had a look at the logcat output: Apparently the android is stuck in a boot loop. And there are tons of error messages concerning none existing files or directories under |
|
There is no need to change the ownership of |
|
Hi, I'm having some pretty indecipherable issues. I have binder and ashmem, I've run waydroid init and I'm using sway, but when I run and when I hit ctrl-c it just repeats itself running and then it proceeds to wait forever for There are no log outputs on dmesg either What could this possibly be? it's really not giving me much. |
|
Hello, your error sounds like you're not running |
You're totally right, my bad. Thanks for pointing this out... |
Motivation for this change
Add an easy way to run waydroid on NixOS.
Things done
sandbox = trueset innix.conf? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"./result/bin/)Things not done
waydroid init.