1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2025-01-05 19:03:21 +03:00
mobile-nixos/examples/target-disk-mode/default.nix
2021-02-23 20:17:19 -05:00

21 lines
629 B
Nix

{ device ? null, pkgs ? null }@args:
import ../../lib/eval-with-configuration.nix (args // {
configuration = [ (import ./configuration.nix) ];
additionalHelpInstructions = ''
The build output to choose depends on the target.
Pinephone, other u-boot, and depthcharge devices:
$ nix-build examples/target-disk-mode --argstr device ${device} -A build.default
Android-based devices:
$ nix-build examples/target-disk-mode --argstr device ${device} -A build.android-bootimg
App "simulator":
$ nix-build examples/target-disk-mode --argstr device uefi-x86_64 -A build.app-simulator
'';
})