dotfiles
My PC Dotfiles & Websitegit clone https://github.com/maydayv7/dotfiles
modules/virt/android.nix (870B)
1## Android Virtualisation ##
2# ? # Run 'waydroid init -s GAPPS -f' to install system image
3_: {
4 flake.modules.nixos.android = {
5 config,
6 options,
7 lib,
8 pkgs,
9 ...
10 }: {
11 config = {
12 warnings = lib.optional (config.boot.kernelPackages != options.boot.kernelPackages.default) ''
13 Android Virtualisation may not work
14 - Kernel may not have requisite 'binder' module
15 - Use the mainline/LTS kernel for assured support
16 '';
17
18 virtualisation.waydroid.enable = true;
19 environment.systemPackages = [pkgs.wl-clipboard];
20
21 # Environment Setup
22 users.groups.android = {
23 name = "android";
24 gid = 1000;
25 };
26
27 environment.persist.directories = [
28 {
29 directory = "/var/lib/waydroid";
30 group = "android";
31 mode = "774";
32 }
33 ];
34 };
35 };
36}