nixos-hardware/starfive/visionfive/v2/default.nix

30 lines
884 B
Nix
Raw Permalink Normal View History

2023-04-16 16:43:32 -04:00
{ config, lib, pkgs, ... }: {
boot = {
# Force no ZFS (from nixos/modules/profiles/base.nix) until updated to kernel 6.0
supportedFilesystems =
lib.mkForce [ "btrfs" "reiserfs" "vfat" "f2fs" "xfs" "ntfs" "cifs" ];
consoleLogLevel = lib.mkDefault 7;
kernelPackages = lib.mkDefault (pkgs.callPackage ./linux-6.6.nix {
2023-04-29 10:50:43 -04:00
inherit (config.boot) kernelPatches;
});
2023-04-16 16:43:32 -04:00
kernelParams =
lib.mkDefault [ "console=tty0" "console=ttyS0,115200n8" "earlycon=sbi" ];
2023-04-29 10:50:43 -04:00
initrd.availableKernelModules = [ "dw_mmc_starfive" ];
2023-04-16 16:43:32 -04:00
loader = {
grub.enable = lib.mkDefault false;
generic-extlinux-compatible.enable = lib.mkDefault true;
};
};
2023-04-16 16:43:32 -04:00
hardware.deviceTree.name =
lib.mkDefault "starfive/jh7110-starfive-visionfive-2-v1.3b.dtb";
hardware.deviceTree.overlays = [{
name = "qspi-patch";
dtsFile = ./qspi-patch.dts;
}];
2023-04-16 16:43:32 -04:00
}