examples/jumpdrive: Hardcode a list of known storage locations
This is not ideal. Ideally devices would provide that information, but
since for now it's only used by jumpdrive, we're skipping the
generalization.
Furthermore, I don't really know how to provide that information in a
way that is coherent with the rest, for now.
{ config, lib, pkgs, ... }:
let
- device_info = config.mobile.device.info;
jumpdrive-gui = pkgs.runCommand "jumpdrive-gui.mrb" {} ''
${pkgs.buildPackages.mruby}/bin/mrbc -o $out \
${../../boot/gui/lib}/*.rb \
@@ -57,7 +56,10 @@ in
};
mobile.boot.stage-1.bootConfig = {
- inherit (device_info) storage;
+ # TODO: figure out a better way to provide this information.
+ storage.internal = {
+ pine64-pinephone = "/dev/disk/by-path/platform-1c11000.mmc";
+ }.${config.mobile.device.name};
};
mobile.boot.stage-1.contents = with pkgs; [
{
