2018-06-10 04:00:12 +03:00
|
|
|
# This entry points allows calling `nix-build -A` with
|
|
|
|
# anything defined in the overlay (or the host system).
|
2018-06-17 02:21:41 +03:00
|
|
|
{
|
|
|
|
device
|
|
|
|
}:
|
|
|
|
let
|
|
|
|
overlay = import ./overlay;
|
|
|
|
eval = import ./lib/eval-config.nix {
|
|
|
|
pkgs = overlay;
|
|
|
|
modules = [
|
|
|
|
(import (./. + "/devices/${device}" ))
|
2018-06-19 05:23:02 +03:00
|
|
|
]
|
|
|
|
# TODO : allow loading from elsewhere through ENV
|
|
|
|
++ overlay.lib.optional (builtins.pathExists ./local.nix) (import (./local.nix ))
|
|
|
|
;
|
2018-06-17 02:21:41 +03:00
|
|
|
};
|
|
|
|
in
|
|
|
|
{
|
|
|
|
inherit overlay;
|
|
|
|
inherit (eval.config.system.build) all;
|
2018-06-24 00:11:07 +03:00
|
|
|
|
|
|
|
# Shortcut to allow building `nixos` from the same channel revision.
|
|
|
|
# This is used by `./nixos/default.nix`
|
|
|
|
# Any time `nix-build nixos` is used upstream, it can be used here.
|
|
|
|
nixos = (import (overlay.path + "/nixos"));
|
2018-06-17 02:21:41 +03:00
|
|
|
}
|