flake.nix: lib.nixosSystem: Set system.build.vm* with lib.mkDefault

This will help anyone who imports the qemu module themselves, to
avoid a collision.
This commit is contained in:
Robert Hensing 2021-12-17 14:12:47 +01:00
parent 9fd9c617a9
commit a0ad8dcd35

View file

@ -47,8 +47,8 @@
system.nixos.revision = final.mkIf (self ? rev) self.rev;
system.build = {
vm = config.virtualisation.vmVariant.system.build.vm;
vmWithBootLoader = config.virtualisation.vmVariantWithBootLoader.system.build.vm;
vm = lib.mkDefault config.virtualisation.vmVariant.system.build.vm;
vmWithBootLoader = lib.mkDefault config.virtualisation.vmVariantWithBootLoader.system.build.vm;
};
})
];