diff --git a/nixos/modules/tasks/lvm.nix b/nixos/modules/tasks/lvm.nix index 6748f023ec4c..0b628725969a 100644 --- a/nixos/modules/tasks/lvm.nix +++ b/nixos/modules/tasks/lvm.nix @@ -87,6 +87,11 @@ in { environment.systemPackages = [ pkgs.thin-provisioning-tools ]; }) (mkIf cfg.boot.vdo.enable { + assertions = [{ + assertion = lib.versionAtLeast config.boot.kernelPackages.kernel.version "6.9"; + message = "boot.vdo.enable requires at least kernel version 6.9"; + }]; + boot = { initrd = { kernelModules = [ "dm-vdo" ];