Remove the nixos-hardware module for Raspi4

This commit is contained in:
Andreas Zweili 2023-06-08 21:25:49 +02:00
parent 1366511e11
commit 9dafff74e2
2 changed files with 18 additions and 8 deletions

View File

@ -1,9 +1,5 @@
{ inputs, lib, pkgs, ... }:
{
imports = [
inputs.nixos-hardware.nixosModules.raspberry-pi-4
];
boot = {
supportedFilesystems = lib.mkForce [ "f2fs" "ntfs" "cifs" "ext4" "vfat" "nfs" "nfs4" ];
};
@ -15,8 +11,24 @@
};
};
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
];
loader = {
grub.enable = false;
generic-extlinux-compatible.enable = true;
};
};
boot.extraModulePackages = [ ];
boot.kernelParams = [ ];
hardware.enableRedistributableFirmware = true;
hardware.pulseaudio.enable = true;
environment.systemPackages = with pkgs; [

View File

@ -22,8 +22,6 @@ in
};
config = lib.mkIf cfg.enable {
hardware.raspberry-pi."4".dwc2.enable = true;
networking = {
hostName = cfg.hostname;
hosts = {