1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-16 20:21:32 +03:00
Commit Graph

9 Commits

Author SHA1 Message Date
Samuel Dionne-Riel
f1268082f9 lib/release-tools: eval helpers don't include default.nix anymore
This is required for more hermetic evals.

A simple thing to try is, before this change, replace `default.nix` with
`throw "No thanks..."`. It would throw. It was also possible to observe
`local.nix` was being included by the warnings.

Wioth this change, `release.nix` does not include `local.nix` through
`default.nix`.

I think this was the last piece of Mobile NixOS that actually relied on
`default.nix` being a thing. We have finally completely inverted the
control, where `default.nix` uses the helpers, rather than the helpers
evaluating a specialized `default.nix`.

From now on, it should be entirely safe to experiment with
`default.nix`. We should be able to **fail noisily** when a user builds
the default empty configuration!
2021-02-21 17:34:12 -05:00
Samuel Dionne-Riel
34b033330f Replace evalConfig with config.lib.mobile-nixos.composeConfig 2021-02-02 01:58:41 -05:00
Samuel Dionne-Riel
b57495c363 release-tools: Remove _mobile-nixos.nixpkgsPath
`modulesPath` is enough for our needs.
2021-02-02 01:58:41 -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
1ba61f1860 release-tools: Remove usage of removed option
Recent changes in Nixpkgs makes it more strict.

This is a change that wasn't caught as needed from the migration to
structured options for device infos.
2020-08-18 17:45:03 -04: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
c26105eabf release-tools: Eval using imports to get the file name
Instead of the following error message:

```
error: The option `mobile.device.info' defined in `<unknown-file>' does not exist.
(use '--show-trace' to show detailed location information)
```

We now get:

```
error: The option `mobile.device.info' defined in `.../mobile-nixos/devices/asus-z00t' does not exist.
(use '--show-trace' to show detailed location information)
```
2020-05-24 20: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
9179158645 release-tools: Split useful Mobile NixOS evaluation tools
This is to be used by the documentation system, without requiring to
repeat all of the code.
2020-04-04 14:39:23 -04:00