mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-11-09 12:06:09 +01:00
raspberry-pi/5: init
This commit is contained in:
parent
753176b57b
commit
c4fa85b9df
4 changed files with 23 additions and 1 deletions
15
raspberry-pi/5/default.nix
Normal file
15
raspberry-pi/5/default.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{ lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
nixpkgs.overlays = [
|
||||
(import ./overlay.nix)
|
||||
];
|
||||
|
||||
boot = {
|
||||
kernelPackages = lib.mkDefault (pkgs.linuxPackagesFor pkgs.linux_rpi5);
|
||||
initrd.availableKernelModules = [
|
||||
"usbhid"
|
||||
"usb_storage"
|
||||
];
|
||||
};
|
||||
}
|
||||
6
raspberry-pi/5/overlay.nix
Normal file
6
raspberry-pi/5/overlay.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
final: _prev: {
|
||||
linux_rpi5 = final.linux_rpi4.override {
|
||||
rpiVersion = 5;
|
||||
argsOverride.defconfig = "bcm2712_defconfig";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue