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