1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-12-23 10:09:44 +01:00

nxp-imx8: drop kernel overlay

With overlays one cannot re-use nixpkgs across different machines,
which is a performance issues. In this instance it's not really needed.
This commit is contained in:
Jörg Thalheim 2023-05-05 08:17:52 +02:00
parent 51559e691f
commit c84a8f2423
3 changed files with 3 additions and 10 deletions

View file

@ -1,12 +1,8 @@
{ pkgs, lib, ... }: {
nixpkgs.overlays = [
(import ./overlay.nix)
];
nixpkgs.hostPlatform = "aarch64-linux";
boot = {
kernelPackages = pkgs.linuxPackagesFor pkgs.linux_imx8;
kernelPackages = pkgs.linuxPackagesFor (pkgs.callPackage ./bsp/linux-imx8.nix { });
kernelParams = [ "console=ttyLP0,115200n8" ];
loader.grub.enable = lib.mkDefault true;
initrd.includeDefaultModules = lib.mkForce false;

View file

@ -1,3 +0,0 @@
final: prev: {
linux_imx8 = final.callPackage ./bsp/linux-imx8.nix { pkgs = final; };
}

View file

@ -1,4 +1,4 @@
{ pkgs, lib, ... }:
{ pkgs, ... }:
{
nixpkgs.overlays = [
@ -10,7 +10,7 @@
];
boot.loader.grub.extraFiles = {
"imx8qm-mek.dtb" = "${pkgs.linux_imx8}/dtbs/freescale/imx8qm-mek.dtb";
"imx8qm-mek.dtb" = "${pkgs.callPackage ../common/bsp/linux-imx8.nix { }}/dtbs/freescale/imx8qm-mek.dtb";
};
hardware.deviceTree = {