2009-06-05 15:04:33 +00:00
|
|
|
{ configuration ? import ./lib/from-env.nix "NIXOS_CONFIG" /etc/nixos/configuration.nix
|
2009-06-05 13:19:39 +00:00
|
|
|
}:
|
2007-09-18 15:06:24 +00:00
|
|
|
|
2009-06-05 13:19:39 +00:00
|
|
|
let
|
2009-05-20 10:18:54 +00:00
|
|
|
|
2009-05-27 09:16:56 +00:00
|
|
|
inherit
|
2009-06-05 13:19:39 +00:00
|
|
|
(import ./lib/eval-config.nix {inherit configuration;})
|
|
|
|
config optionDeclarations pkgs;
|
2009-05-27 09:16:56 +00:00
|
|
|
|
2009-08-11 01:35:56 +00:00
|
|
|
vmConfig = (import ./lib/eval-config.nix {
|
|
|
|
inherit configuration;
|
|
|
|
extraModules = [./modules/virtualisation/qemu-vm.nix];
|
|
|
|
}).config;
|
|
|
|
|
2007-09-18 15:06:24 +00:00
|
|
|
in
|
|
|
|
|
2009-05-27 09:00:45 +00:00
|
|
|
{
|
2009-06-15 15:50:36 +00:00
|
|
|
inherit config;
|
|
|
|
|
2009-06-05 13:19:39 +00:00
|
|
|
system = config.system.build.system;
|
2009-05-27 09:00:45 +00:00
|
|
|
|
2009-08-11 01:35:56 +00:00
|
|
|
vm = vmConfig.system.build.vm;
|
|
|
|
|
2009-05-27 23:14:38 +00:00
|
|
|
# The following are used by nixos-rebuild.
|
2009-05-27 09:00:45 +00:00
|
|
|
nixFallback = pkgs.nixUnstable;
|
2009-05-27 23:14:38 +00:00
|
|
|
manifests = config.installer.manifests;
|
2007-09-18 15:06:24 +00:00
|
|
|
|
2009-05-27 09:00:45 +00:00
|
|
|
tests = config.tests;
|
2007-09-18 15:06:24 +00:00
|
|
|
}
|