aboutsummaryrefslogtreecommitdiff
path: root/default.nix
blob: 28049ebd146ac64638a4dcc5f37b5b09ff9cd9f7 (plain)
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
{ 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;
}