1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-15 11:03:37 +03:00
mobile-nixos/examples/hello/default.nix

23 lines
668 B
Nix
Raw Normal View History

{ device ? null }:
let
system-build = import ../../. {
inherit device;
configuration = [ { imports = [ ./configuration.nix ]; } ];
};
in
system-build // {
___readme-default = throw ''
Cannot directly build for ${device}...
You can build the `-A build.default` attribute to build the default output
for your device.
$ nix-build examples/hello --argstr device ${device} -A build.default
*************************************************************************
* Please also read your device's documentation for further usage notes. *
*************************************************************************
'';
}