mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-11-06 01:48:50 +08:00
raspberry-pi/5: init
This commit is contained in:
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";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user