From bc693cf4b9083d97d49f4b398fe454e177ab6776 Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Wed, 22 Oct 2025 13:21:03 +0200 Subject: [PATCH] linux/common-config: only enable VFIO opts for 6.6 and later For older kernels (<=6.1) I get error: unused option: VFIO_DEVICE_CDEV while building `linux-config`. --- pkgs/os-specific/linux/kernel/common-config.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/os-specific/linux/kernel/common-config.nix b/pkgs/os-specific/linux/kernel/common-config.nix index 03a8b930bc92..4fa16a094bdc 100644 --- a/pkgs/os-specific/linux/kernel/common-config.nix +++ b/pkgs/os-specific/linux/kernel/common-config.nix @@ -1003,8 +1003,8 @@ let # Enable CDEV and NOIOMMU support for VFIO, which is useful for # passthrough. - VFIO_DEVICE_CDEV = yes; - VFIO_NOIOMMU = yes; + VFIO_DEVICE_CDEV = whenAtLeast "6.6" yes; + VFIO_NOIOMMU = whenAtLeast "6.6" yes; }; media = {