tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
nixos/waydroid: allow override waydroid
wxt
7 months ago
ee0937ff
6f7fdf8e
+4
-4
1 changed file
expand all
collapse all
unified
split
nixos
modules
virtualisation
waydroid.nix
+4
-4
nixos/modules/virtualisation/waydroid.nix
···
8
8
let
9
9
cfg = config.virtualisation.waydroid;
10
10
kCfg = config.lib.kernelConfig;
11
11
-
kernelPackages = config.boot.kernelPackages;
12
11
waydroidGbinderConf = pkgs.writeText "waydroid.conf" ''
13
12
[Protocol]
14
13
/dev/binder = aidl2
···
26
25
27
26
options.virtualisation.waydroid = {
28
27
enable = lib.mkEnableOption "Waydroid";
28
28
+
package = lib.mkPackageOption pkgs "waydroid" { };
29
29
};
30
30
31
31
config = lib.mkIf cfg.enable {
···
49
49
50
50
environment.etc."gbinder.d/waydroid.conf".source = waydroidGbinderConf;
51
51
52
52
-
environment.systemPackages = with pkgs; [ waydroid ];
52
52
+
environment.systemPackages = [ cfg.package ];
53
53
54
54
networking.firewall.trustedInterfaces = [ "waydroid0" ];
55
55
···
63
63
serviceConfig = {
64
64
Type = "dbus";
65
65
UMask = "0022";
66
66
-
ExecStart = "${pkgs.waydroid}/bin/waydroid -w container start";
66
66
+
ExecStart = "${cfg.package}/bin/waydroid -w container start";
67
67
BusName = "id.waydro.Container";
68
68
};
69
69
};
···
72
72
"d /var/lib/misc 0755 root root -" # for dnsmasq.leases
73
73
];
74
74
75
75
-
services.dbus.packages = with pkgs; [ waydroid ];
75
75
+
services.dbus.packages = [ cfg.package ];
76
76
};
77
77
78
78
}