summary refs log tree commit diff
path: root/default.nix
blob: f0020c5a1a6a06059a8d9b315adeff175d569a3f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ configuration ? import ./lib/from-env.nix "NIXOS_CONFIG" /etc/nixos/configuration.nix
}:

let
  
  inherit
    (import ./lib/eval-config.nix {inherit configuration;})
    config optionDeclarations pkgs;

  vmConfig = (import ./lib/eval-config.nix {
    inherit configuration;
    extraModules = [./modules/virtualisation/qemu-vm.nix];
  }).config;
    
in

{
  inherit 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;
}