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:
parent
ca0ef47b71
commit
6990de541d
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
||||
result
|
||||
*.swp
|
||||
local.nix
|
||||
|
22
README.md
22
README.md
@ -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
|
||||
-----
|
||||
|
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user