nixpkgs/nixos/default.nix
Robert Hensing f72432aeb2 nixos: Move build-vm into virtualisation.vmVariant
... which is like a specialisation, but for nixos-rebuild build-vm
2021-12-17 13:19:16 +01:00

23 lines
461 B
Nix

{ configuration ? import ./lib/from-env.nix "NIXOS_CONFIG" <nixos-config>
, system ? builtins.currentSystem
}:
let
eval = import ./lib/eval-config.nix {
inherit system;
modules = [ configuration ];
};
in
{
inherit (eval) pkgs config options;
system = eval.config.system.build.toplevel;
vm = eval.config.virtualisation.vmVariant.system.build.vm;
vmWithBootLoader = eval.config.virtualisation.vmVariantWithBootLoader.system.build.vm;
}