1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2025-01-07 12:11:28 +03:00
mobile-nixos/examples/target-disk-mode/default.nix

21 lines
629 B
Nix
Raw Normal View History

{ 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
'';
})