1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-09-11 03:55:23 +03:00

Adds support for local.nix overrides.

This commit is contained in:
Samuel Dionne-Riel 2018-06-18 22:23:02 -04:00
parent ca0ef47b71
commit 6990de541d
3 changed files with 27 additions and 1 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
result
*.swp
local.nix

View File

@ -34,6 +34,28 @@ bin/boot-qemu
This currently does not build using 18.03 and may never (18.09 may release before!)
### `local.nix`
This file can be used to override (possibly with `lib.mkForce`) options on a global
scale for your local builds.
If the file does not exist, it will not fail.
A sample `local.nix`:
```
{ lib, ... }:
{
mobile.boot.stage-1.splash.enable = false;
}
```
This will disable splash screens.
This will be most useful to configure local sensitive stuff like password (hashes)
or ssh keys.
Goals
-----

View File

@ -9,7 +9,10 @@ let
pkgs = overlay;
modules = [
(import (./. + "/devices/${device}" ))
];
]
# TODO : allow loading from elsewhere through ENV
++ overlay.lib.optional (builtins.pathExists ./local.nix) (import (./local.nix ))
;
};
in
{