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:
parent
39a962f8ac
commit
c733ae88f3
|
@ -39,6 +39,12 @@
|
||||||
# Target device (RPi3 aarch64) nixpkgs.
|
# Target device (RPi3 aarch64) nixpkgs.
|
||||||
pkgs = import nixpkgs {
|
pkgs = import nixpkgs {
|
||||||
system = "aarch64-linux";
|
system = "aarch64-linux";
|
||||||
|
overlays = [
|
||||||
|
(final: super: {
|
||||||
|
makeModulesClosure = x:
|
||||||
|
super.makeModulesClosure (x // { allowMissing = true; });
|
||||||
|
})
|
||||||
|
];
|
||||||
};
|
};
|
||||||
# Modules for colmena and sd card image are the same.
|
# Modules for colmena and sd card image are the same.
|
||||||
modules = [
|
modules = [
|
||||||
|
|
|
@ -1,14 +1,16 @@
|
||||||
{pkgs, ...}:
|
{pkgs, lib, ...}:
|
||||||
{
|
{
|
||||||
nixpkgs.hostPlatform.system = "aarch64-linux";
|
nixpkgs.hostPlatform.system = "aarch64-linux";
|
||||||
sdImage.imageName = "orange.img";
|
sdImage.imageName = "orange.img";
|
||||||
|
|
||||||
boot.loader.raspberryPi.version = 4;
|
boot.loader.raspberryPi.version = 4;
|
||||||
|
boot.supportedFilesystems = lib.mkForce [ "btrfs" "cifs" "f2fs" "jfs" "ntfs" "reiserfs" "vfat" "xfs" ];
|
||||||
|
|
||||||
hardware.raspberry-pi."4" = {
|
hardware.raspberry-pi."4" = {
|
||||||
fkms-3d.enable = true;
|
fkms-3d.enable = true;
|
||||||
apply-overlays-dtmerge.enable = true;
|
apply-overlays-dtmerge.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
console.enable = false;
|
console.enable = false;
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
libraspberrypi
|
libraspberrypi
|
||||||
|
|
Loading…
Reference in a new issue