mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-11-18 00:49:41 +01:00
25 lines
790 B
Nix
25 lines
790 B
Nix
{ 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.3.nix { inherit (config.boot) kernelPatches; });
|
|
|
|
kernelParams =
|
|
lib.mkDefault [ "console=tty0" "console=ttyS0,115200n8" "earlycon=sbi" ];
|
|
|
|
initrd.availableKernelModules = [
|
|
"dw_mmc_starfive"
|
|
];
|
|
|
|
loader = {
|
|
grub.enable = lib.mkDefault false;
|
|
generic-extlinux-compatible.enable = lib.mkDefault true;
|
|
};
|
|
};
|
|
|
|
hardware.deviceTree.name =
|
|
lib.mkDefault "starfive/jh7110-starfive-visionfive-2-v1.3b.dtb";
|
|
}
|