1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-15 19:23:01 +03:00
Commit Graph

25 Commits

Author SHA1 Message Date
Samuel Dionne-Riel
32a7185b2f default.nix: Use eval-with-configuration.nix 2021-02-23 20:17:19 -05:00
Edward Amsden
c507b39099 Make the package set a parameter instead of using <nixpkgs> everywhere.
Co-authored-by: Samuel Dionne-Riel <samuel@dionne-riel.com>
Co-authored-by: Edward Amsden <edward@blackriversoft.com>
2021-02-02 01:58:41 -05:00
Samuel Dionne-Riel
d5dc607443 Allow evaluating a device from a path
This allows external device definitions to be used.
2020-07-28 00:05:14 -04:00
Samuel Dionne-Riel
3d0552223d examples/hello: introduce a minimal useful example system
The examples/hello system can be used by users that want to boot a
minimal, and cross-compilable system.

This is better than a "raw" build of the root of the Mobile NixOS repo
since it provides a stage-2 application stating the system booted
successfully.
2020-05-31 18:54:07 -04:00
Samuel Dionne-Riel
7ee81a9cad default.nix: Drop confusing unused attribute
Its documentation, which was really wrong, tells me this was something
that was either lost early on, or never implemented.
2020-05-31 16:05:57 -04:00
Samuel Dionne-Riel
09fed68bcf treewide: Remove installer/mobile-installer dead weight
This didn't end up being something that's being worked on. It probably
was entirely confusing for everyone as it wasn't documented, and didn't
actually do anything useful most of the time.

Rather than polluting the build with some one-off special cases like
this, we'll implement an "installer" as an example system, if we even
want an installer.

It's not planned yet *how* users should install, it may not even be an
installer type system.

This also rewords the "successful default build failure" message.
2020-05-31 16:05:57 -04:00
Samuel Dionne-Riel
245ecceee4 default.nix: Pass additional config to evalWith
This broke eval for aarch64-linux platforms.

See the previous commit for an assertion that should prevent such
breakage from going through in the future.
2020-04-07 23:13:07 -04:00
Samuel Dionne-Riel
fb64a005de Allow evaluating without NixOS.
We are now splitting the concerns more clearly, by making `baseModules`
the reason we are evaluating NixOS, rather than wholesale always
including it into the modules.
2020-04-06 18:32:45 -04:00
Samuel Dionne-Riel
2fbd2c660d default.nix: Fix bug with special configuration
Associativity strikes!
2020-03-29 00:18:02 -04:00
Samuel Dionne-Riel
6a744f0292 default.nix: Fix wrong default value 2020-03-14 00:34:27 -04:00
Samuel Dionne-Riel
a9e2e897d2 default.nix: Allow passing more configuration
This begins to smell like spaghetti :/
2020-03-13 19:43:34 -04:00
Samuel Dionne-Riel
7f265d59c2 default.nix: Warn when local.nix is used
Only to remind the poor soul that their build has some side-effects.
2020-03-13 18:13:24 -04:00
Samuel Dionne-Riel
5471ee7e05 default.nix: Allow receiving special configurations
Those are sent as a parameter to the derivation. This is part of the
internal API allowing the coming release.nix to make generic builds for
the overlay.
2020-03-13 14:56:04 -04:00
Samuel Dionne-Riel
ae90e4c51c default.nix: misc. cleanup 2020-03-12 22:08:55 -04:00
Samuel Dionne-Riel
664d523030 default.nix: Add header to device eval
This is useful when doing a "batch eval", where you can see which device
caused the eval to fail more easily.
2020-03-12 17:57:57 -04:00
Samuel Dionne-Riel
df7bc1f08e default.nix: Allows composition 2019-09-24 23:00:02 -04:00
Samuel Dionne-Riel
a9f4c851cc Adds an installer output... 2019-09-21 22:45:41 -04:00
Samuel Dionne-Riel
327fda2329 Review build to better use system.build and be more composable 2019-09-21 22:40:24 -04:00
Samuel Dionne-Riel
77110eaa92 default.nix: WIP minor refactor 2019-09-21 17:32:16 -04:00
Linus Heckemann
0f7d2cffca default.nix: convenience improvements
Exposes the nixos config attribute, and gets device from an
environment variable if not provided as a function argument.
2019-06-18 17:32:43 +02:00
Samuel Dionne-Riel
cf47617e62 Reviews how overlay works and is used. 2018-06-26 20:49:15 -04:00
Samuel Dionne-Riel
b623007684 WIP : Builds a system image using nixos. 2018-06-23 17:11:07 -04:00
Samuel Dionne-Riel
6990de541d Adds support for local.nix overrides. 2018-06-18 22:23:02 -04:00
Samuel Dionne-Riel
844313903e WIP Migrates device configuration into the options system. 2018-06-16 23:21:41 +00:00
Samuel Dionne-Riel
e5af76d718 Adds default.nix that allows calling nix-build. 2018-06-10 01:00:12 +00:00