virtualisation/kubevirt: use system.build.image
This commit is contained in:
parent
d8410d8366
commit
6d50a8c57f
@ -8,6 +8,7 @@
|
||||
{
|
||||
imports = [
|
||||
../profiles/qemu-guest.nix
|
||||
../image/file-options.nix
|
||||
];
|
||||
|
||||
config = {
|
||||
@ -27,8 +28,12 @@
|
||||
services.cloud-init.enable = true;
|
||||
systemd.services."serial-getty@ttyS0".enable = true;
|
||||
|
||||
system.nixos.tags = [ "kubevirt" ];
|
||||
image.extension = "qcow2";
|
||||
system.build.image = config.system.build.kubevirtImage;
|
||||
system.build.kubevirtImage = import ../../lib/make-disk-image.nix {
|
||||
inherit lib config pkgs;
|
||||
inherit (config.image) baseName;
|
||||
format = "qcow2";
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user