|
@@ -22,6 +22,24 @@
|
|
|
# Disable GRUB (not used on Raspberry Pi)
|
|
|
boot.loader.grub.enable = false;
|
|
|
|
|
|
+ # Qemu storage drivers
|
|
|
+ # boot.initrd.enable = true;
|
|
|
+ # boot.initrd.kernelModules = [ "brcmfmac" "bcm2835_rng" "mmc_block" "sdhci" "sdhci-pci" "sdhci-pltfm" ];
|
|
|
+ # boot.initrd.network.enable = false;
|
|
|
+ # boot.initrd.availableKernelModules = [ "mmc_block" "sdhci" "usb_storage" "ext4" ];
|
|
|
+
|
|
|
+ # boot.initrd.availableKernelModules = [ "virtio_blk" "virtio_pci" "virtio_mmio" ];
|
|
|
+ # boot.kernelModules = [ "virtio_blk" "virtio_net" "sd" "sdhci" ];
|
|
|
+ # hardware.enableAllFirmware = true;
|
|
|
+ boot.kernelPackages = lib.mkForce pkgs.linuxPackages_rpi2;
|
|
|
+ nixpkgs.overlays = [
|
|
|
+ (final: super: {
|
|
|
+ makeModulesClosure = x:
|
|
|
+ super.makeModulesClosure (x // { allowMissing = true; });
|
|
|
+ })
|
|
|
+ ];
|
|
|
+ boot.supportedFilesystems = lib.mkForce [ "vfat" "ext4" ];
|
|
|
+
|
|
|
# Networking
|
|
|
networking.hostName = "nixos-rpi2";
|
|
|
networking.wireless.enable = false; # Enable this if using WiFi
|