forked from mirrors/nixpkgs
2892aed712
into one argument "modules". * release.nix: fixed the manual job. * ISO generation: break an infinite recursion. Don't know why this suddenly happens. Probably because of the nixpkgs.config change, but I don't see why. Maybe the option evaluation is too strict. svn path=/nixos/trunk/; revision=16878
29 lines
588 B
Nix
29 lines
588 B
Nix
{ configuration ? import ./lib/from-env.nix "NIXOS_CONFIG" /etc/nixos/configuration.nix
|
|
}:
|
|
|
|
let
|
|
|
|
eval = import ./lib/eval-config.nix { modules = [ configuration ]; };
|
|
|
|
inherit (eval) config pkgs;
|
|
|
|
vmConfig = (import ./lib/eval-config.nix {
|
|
modules = [ configuration ./modules/virtualisation/qemu-vm.nix ];
|
|
}).config;
|
|
|
|
in
|
|
|
|
{
|
|
inherit eval config;
|
|
|
|
system = config.system.build.system;
|
|
|
|
vm = vmConfig.system.build.vm;
|
|
|
|
# The following are used by nixos-rebuild.
|
|
nixFallback = pkgs.nixUnstable;
|
|
manifests = config.installer.manifests;
|
|
|
|
tests = config.tests;
|
|
}
|