mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-12-26 03:29:44 +01:00
29 lines
574 B
Nix
29 lines
574 B
Nix
|
{ config, lib, pkgs, ... }:
|
||
|
|
||
|
{
|
||
|
boot = {
|
||
|
consoleLogLevel = lib.mkDefault 7;
|
||
|
initrd = {
|
||
|
availableKernelModules = [
|
||
|
"amdgpu"
|
||
|
"radeon"
|
||
|
"mmc_block"
|
||
|
"sdhci_sophgo"
|
||
|
];
|
||
|
};
|
||
|
kernelPackages = pkgs.linuxPackagesFor (pkgs.callPackage ./linux.nix {
|
||
|
inherit (config.boot) kernelPatches;
|
||
|
});
|
||
|
kernelParams = lib.mkDefault [
|
||
|
"earlycon"
|
||
|
"console=ttyS0,115200"
|
||
|
"console=tty1"
|
||
|
];
|
||
|
};
|
||
|
|
||
|
hardware.deviceTree = {
|
||
|
enable = true;
|
||
|
name = lib.mkDefault "sophgo/mango-milkv-pioneer.dtb";
|
||
|
};
|
||
|
}
|