RasPi 4 kernel build fixes.

Overlay from https://github.com/NixOS/nixpkgs/issues/154163#issuecomment-1350599022
Disables ZFS to avoid rebuilding the kernel.
This commit is contained in:
Bailey Stevens 2023-09-20 18:53:36 -04:00
parent 39a962f8ac
commit c733ae88f3
2 changed files with 11 additions and 3 deletions

View file

@ -39,6 +39,12 @@
# Target device (RPi3 aarch64) nixpkgs.
pkgs = import nixpkgs {
system = "aarch64-linux";
overlays = [
(final: super: {
makeModulesClosure = x:
super.makeModulesClosure (x // { allowMissing = true; });
})
];
};
# Modules for colmena and sd card image are the same.
modules = [

View file

@ -1,14 +1,16 @@
{pkgs, ...}:
{pkgs, lib, ...}:
{
nixpkgs.hostPlatform.system = "aarch64-linux";
sdImage.imageName = "orange.img";
boot.loader.raspberryPi.version = 4;
boot.supportedFilesystems = lib.mkForce [ "btrfs" "cifs" "f2fs" "jfs" "ntfs" "reiserfs" "vfat" "xfs" ];
hardware.raspberry-pi."4" = {
fkms-3d.enable = true;
apply-overlays-dtmerge.enable = true;
fkms-3d.enable = true;
apply-overlays-dtmerge.enable = true;
};
console.enable = false;
environment.systemPackages = with pkgs; [
libraspberrypi