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 b2f60c8
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion raspberry-pi/5/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, pkgs, ... }:
{ lib, pkgs, config, ... }:

{
nixpkgs.overlays = [
Expand All @@ -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 b2f60c8

Please sign in to comment.