1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-11-26 21:09:42 +01:00

raspberry-pi/5: add kernel version assertion

This commit is contained in:
leo60228 2024-05-01 15:40:27 -04:00
parent 2ef5cda254
commit b2f60c8bd0
No known key found for this signature in database
GPG key ID: 6F3EB461799AD95E

View file

@ -1,4 +1,4 @@
{ lib, pkgs, ... }: { lib, pkgs, config, ... }:
{ {
nixpkgs.overlays = [ nixpkgs.overlays = [
@ -24,4 +24,11 @@
Option "PrimaryGPU" "true" Option "PrimaryGPU" "true"
EndSection EndSection
''; '';
assertions = [
{
assertion = (lib.versionAtLeast config.boot.kernelPackages.kernel.version "6.1.54");
message = "The Raspberry Pi 5 requires a newer kernel version (>=6.1.54). Please upgrade nixpkgs for this system.";
}
];
} }