diff --git a/nixos/modules/profiles/qemu-guest.nix b/nixos/modules/profiles/qemu-guest.nix index d0290d661cce..d1ebfd10bc99 100644 --- a/nixos/modules/profiles/qemu-guest.nix +++ b/nixos/modules/profiles/qemu-guest.nix @@ -12,6 +12,7 @@ "virtio_scsi" "9p" "9pnet_virtio" + "virtiofs" ]; boot.initrd.kernelModules = [ "virtio_balloon" diff --git a/nixos/tests/systemd-machinectl.nix b/nixos/tests/systemd-machinectl.nix index 493188e4683f..4b6c8febbb04 100644 --- a/nixos/tests/systemd-machinectl.nix +++ b/nixos/tests/systemd-machinectl.nix @@ -75,10 +75,6 @@ let # improvement: move following profile to ../modules/profiles/vmspawn-guest.nix profile-guest-vmspawn = { imports = [ ../modules/profiles/qemu-guest.nix ]; - # improvement: move following configuration to qemu-guest.nix - boot.initrd.availableKernelModules = [ - "virtiofs" - ]; boot.initrd.systemd.enable = true; # root is defined by systemd-vmspawn