Skip to content

Commit

Permalink
Fix disk.type being wrong for user VMs
Browse files Browse the repository at this point in the history
  • Loading branch information
diamondburned committed May 9, 2024
1 parent fd9869b commit 510ff14
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions user-machines/vm/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -307,17 +307,15 @@ in
emulator = "/run/libvirt/nix-emulators/qemu-system-x86_64";
disk = with lib; [
{
type = "volume";
type = "file";
device = "disk";
driver = {
name = "qemu";
type = "raw";
cache = "writeback";
discard = "unmap";
};
source = {
file = "${self.poolDirectory}/${user.uuid}.img";
};
source.file = "${self.poolDirectory}/${user.uuid}.img";
target = {
dev = "vda";
bus = "virtio";
Expand Down

0 comments on commit 510ff14

Please sign in to comment.