nixpkgs-suyu/default.nix
Nicolas Pierron ce030d6c35 inherit eval to access option declarations from outside programs.
svn path=/nixos/trunk/; revision=16770
2009-08-19 15:04:11 +00:00

29 lines
596 B
Nix

{ configuration ? import ./lib/from-env.nix "NIXOS_CONFIG" /etc/nixos/configuration.nix
}:
let
eval = import ./lib/eval-config.nix {inherit configuration;};
inherit (eval) config pkgs;
vmConfig = (import ./lib/eval-config.nix {
inherit configuration;
extraModules = [./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;
}