summary refs log blame commit diff
path: root/default.nix
blob: cf16a81acfba94e41cb96f5cb81c874f080e5895 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                                                       
  
 
   
  
                                                                       

                             
 
                                            
                                                                     

            

  
 
                      
 
                                        
 

                                
                                            
                                 
                                         
 
                       
 
{ 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.toplevel;

  vm = vmConfig.system.build.vm;

  # The following are used by nixos-rebuild.
  nixFallback = pkgs.nixUnstable;
  manifests = config.installer.manifests;

  tests = config.tests;
}