[NixOS] Try to fix raspberry pi

https://github.com/NixOS/nixos-hardware/issues/631
This commit is contained in:
Ivan Malison 2023-06-29 13:37:17 -06:00
parent a4a67886f4
commit bb5ef8544b
No known key found for this signature in database
GPG Key ID: 62530EFBE99DC2F8

View File

@ -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;