|
@@ -17,7 +17,7 @@
|
|
|
# Bootloader: Use U-Boot for Raspberry Pi 2
|
|
|
boot.loader.generic-extlinux-compatible.enable = true;
|
|
|
hardware.deviceTree.enable = true;
|
|
|
- hardware.deviceTree.name = "bcm2836-rpi-2-b.dtb"; # Correct DTB for RPi2
|
|
|
+ hardware.deviceTree.name = "bcm2709-rpi-2-b.dtb"; # Correct DTB for RPi2
|
|
|
|
|
|
# Disable GRUB (not used on Raspberry Pi)
|
|
|
boot.loader.grub.enable = false;
|
|
@@ -39,7 +39,7 @@
|
|
|
})
|
|
|
];
|
|
|
boot.supportedFilesystems = lib.mkForce [ "vfat" "ext4" ];
|
|
|
-
|
|
|
+
|
|
|
# Networking
|
|
|
networking.hostName = "nixos-rpi2";
|
|
|
networking.wireless.enable = false; # Enable this if using WiFi
|
|
@@ -58,9 +58,4 @@
|
|
|
|
|
|
# Set system version (avoid warnings)
|
|
|
system.stateVersion = "25.05";
|
|
|
-
|
|
|
- # Enable cross-compilation
|
|
|
- nixpkgs.crossSystem = {
|
|
|
- system = "armv7l-linux";
|
|
|
- };
|
|
|
}
|