diff --git a/examples/hello/default.nix b/examples/hello/default.nix index 609b529f..a23c07f2 100644 --- a/examples/hello/default.nix +++ b/examples/hello/default.nix @@ -1,22 +1,11 @@ -{ device ? null }: - -let - system-build = import ../../. { - inherit device; - configuration = [ { imports = [ ./configuration.nix ]; } ]; - }; -in - system-build // { - ___readme-default = throw '' - Cannot directly build for ${device}... +{ device ? null, pkgs ? null }@args: +import ../../lib/eval-with-configuration.nix (args // { + configuration = [ (import ./configuration.nix) ]; + additionalHelpInstructions = '' 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. * - ************************************************************************* ''; - } +})