diff --git a/nixos/modules/virtualisation/qemu-vm.nix b/nixos/modules/virtualisation/qemu-vm.nix index 61366c3ea75f..3afe34f0a2a7 100644 --- a/nixos/modules/virtualisation/qemu-vm.nix +++ b/nixos/modules/virtualisation/qemu-vm.nix @@ -741,7 +741,11 @@ in }; virtualisation.qemu = { - enableSharedMemory = mkEnableOption "shared memory"; + enableSharedMemory = mkOption { + type = types.bool; + default = useVirtiofs; # Need shared memory for virtiofs: + description = "Enable shared memory"; + }; package = mkOption { type = types.package;