mirror of
https://github.com/NixOS/mobile-nixos.git
synced 2024-12-15 19:23:01 +03:00
demo: Enable adbd in burn tool
This commit is contained in:
parent
0815a83dcf
commit
c15460b6d4
@ -7,13 +7,16 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
inherit (lib) mkMerge mkOrder;
|
||||
device_info = config.mobile.device.info;
|
||||
in
|
||||
{
|
||||
config = mkMerge [
|
||||
{
|
||||
{
|
||||
# Ensures we don't quit stage-1
|
||||
mobile.boot.stage-1.shell.enable = true;
|
||||
# Only enable `adb` if we know how to.
|
||||
# FIXME: relies on implementation details. Poor separation of concerns.
|
||||
mobile.adbd.enable = (config.mobile.system.type == "android") &&
|
||||
(config.mobile.usb.mode != "gadgetfs" || device_info.gadgetfs.functions ? ffs)
|
||||
;
|
||||
|
||||
# Enables networking and ssh in stage-1 !
|
||||
mobile.boot.stage-1.networking.enable = true;
|
||||
@ -40,6 +43,4 @@ in
|
||||
end
|
||||
'')
|
||||
];
|
||||
}
|
||||
];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user