virtualisation/kubevirt: use system.build.image

This commit is contained in:
phaer 2024-11-15 00:26:07 +01:00
parent d8410d8366
commit 6d50a8c57f

View File

@ -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";
};
};