2020-04-24 23:36:52 +00:00
|
|
|
{ configuration ? import ./lib/from-env.nix "NIXOS_CONFIG" <nixos-config>
|
|
|
|
, system ? builtins.currentSystem
|
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
|
|
|
|
eval = import ./lib/eval-config.nix {
|
|
|
|
inherit system;
|
|
|
|
modules = [ configuration ];
|
|
|
|
};
|
|
|
|
|
|
|
|
in
|
|
|
|
|
|
|
|
{
|
|
|
|
inherit (eval) pkgs config options;
|
|
|
|
|
|
|
|
system = eval.config.system.build.toplevel;
|
|
|
|
|
2022-01-19 23:45:15 +00:00
|
|
|
inherit (eval.config.system.build) vm vmWithBootLoader;
|
2020-04-24 23:36:52 +00:00
|
|
|
}
|