1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-01 03:32:26 +03:00
mobile-nixos/default.nix

27 lines
784 B
Nix
Raw Normal View History

# This entry points allows calling `nix-build -A` with
# anything defined in the overlay (or the host system).
{
device
}:
2018-06-27 03:39:26 +03:00
with import <nixpkgs> {};
let
2018-06-27 03:39:26 +03:00
# Evaluation doesn't actually use the overlay.
# The overlay has been re-defined in the modules system.
eval = import ./lib/eval-config.nix {
modules = [
(import (./. + "/devices/${device}" ))
]
# TODO : allow loading from elsewhere through ENV
2018-06-27 03:39:26 +03:00
++ lib.optional (builtins.pathExists ./local.nix) (import (./local.nix ))
;
};
in
{
inherit (eval.config.system.build) all;
# 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.
2018-06-27 03:39:26 +03:00
nixos = (import (path + "/nixos"));
}