mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-12-16 14:01:13 +01:00
raspberry-pi."4": add assertion and update some source comments
Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
This commit is contained in:
parent
1ffd9949ee
commit
40a9f0ed77
3 changed files with 13 additions and 4 deletions
|
|
@ -1,4 +1,4 @@
|
|||
{ lib, pkgs, ... }:
|
||||
{ lib, pkgs, config, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
|
|
@ -34,6 +34,14 @@
|
|||
|
||||
hardware.deviceTree.filter = "bcm2711-rpi-*.dtb";
|
||||
|
||||
|
||||
assertions = [
|
||||
{
|
||||
assertion = (lib.versionAtLeast config.boot.kernelPackages.kernel.version "6.1");
|
||||
message = "This version of raspberry pi 4 dts overlays requires a newer kernel version (>=6.1). Please upgrade nixpkgs for this system.";
|
||||
}
|
||||
];
|
||||
|
||||
# Required for the Wireless firmware
|
||||
hardware.enableRedistributableFirmware = true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue