Skip to content

Commit

Permalink
raspberry-pi/5: add kernel version assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
leo60228 committed May 1, 2024
1 parent 2ef5cda commit a565323
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions raspberry-pi/5/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,11 @@
Option "PrimaryGPU" "true"
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.";
}
];
}

0 comments on commit a565323

Please sign in to comment.