2023-05-17 15:27:00 +07:00
|
|
|
{ pkgs
|
|
|
|
, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
boot.loader = {
|
|
|
|
grub.enable = false;
|
|
|
|
generic-extlinux-compatible.enable = true;
|
|
|
|
};
|
|
|
|
|
2023-06-11 18:02:38 +07:00
|
|
|
# i'm not about to build a kernel on every update without an arm device...
|
|
|
|
# i guess i could use my phone for building it, but no, not interested
|
2023-06-11 21:48:35 +07:00
|
|
|
# boot.kernelPackages = pkgs.linuxPackages_testing;
|
|
|
|
boot.kernelPackages = pkgs.linuxPackages_bpiR3;
|
2023-05-17 15:27:00 +07:00
|
|
|
|
|
|
|
hardware.deviceTree.enable = true;
|
2023-06-11 18:02:38 +07:00
|
|
|
hardware.deviceTree.filter = "*mt7986*";
|
2023-05-17 15:27:00 +07:00
|
|
|
hardware.enableRedistributableFirmware = true;
|
2023-06-11 18:02:38 +07:00
|
|
|
|
|
|
|
# # disable a bunch of useless drivers
|
|
|
|
# boot.initrd.includeDefaultModules = false;
|
2023-06-11 21:48:35 +07:00
|
|
|
boot.initrd.availableKernelModules = [ "mmc_block" "dm_mod" "rfkill" "cfg80211" "mt7915e" ];
|
2023-06-11 18:02:38 +07:00
|
|
|
boot.kernelParams = [ "console=ttyS0,115200" ];
|
|
|
|
|
|
|
|
boot.initrd.compressor = "zstd";
|
|
|
|
nixpkgs.buildPlatform = "x86_64-linux";
|
2023-05-17 15:27:00 +07:00
|
|
|
}
|