[NixOS] Try to fix raspberry pi
https://github.com/NixOS/nixos-hardware/issues/631
This commit is contained in:
parent
a4a67886f4
commit
bb5ef8544b
@ -1,12 +1,29 @@
|
|||||||
{ config, pkgs, inputs, ... }:
|
{ config, pkgs, inputs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
# https://github.com/NixOS/nixos-hardware/issues/631
|
||||||
inputs.nixos-hardware.nixosModules.raspberry-pi-4
|
# imports = [
|
||||||
|
# inputs.nixos-hardware.nixosModules.raspberry-pi-4
|
||||||
|
# ];
|
||||||
|
# hardware.raspberry-pi."4".fkms-3d.enable = true;
|
||||||
|
# hardware.raspberry-pi."4".audio.enable = true;
|
||||||
|
|
||||||
|
boot = {
|
||||||
|
initrd.availableKernelModules = [
|
||||||
|
"usbhid"
|
||||||
|
"usb_storage"
|
||||||
|
"vc4"
|
||||||
|
"pcie_brcmstb" # required for the pcie bus to work
|
||||||
|
"reset-raspberrypi" # required for vl805 firmware to load
|
||||||
];
|
];
|
||||||
|
|
||||||
hardware.raspberry-pi."4".fkms-3d.enable = true;
|
loader = {
|
||||||
hardware.raspberry-pi."4".audio.enable = true;
|
grub.enable = false;
|
||||||
|
generic-extlinux-compatible.enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
boot.extraModulePackages = [ ];
|
||||||
|
boot.kernelParams = [ ];
|
||||||
|
|
||||||
hardware.enableRedistributableFirmware = true;
|
hardware.enableRedistributableFirmware = true;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user