mirror of
				https://github.com/NixOS/nixos-hardware.git
				synced 2025-11-04 17:27:14 +08:00 
			
		
		
		
	With overlays one cannot re-use nixpkgs across different machines, which is a performance issues. In this instance it's not really needed.
		
			
				
	
	
		
			15 lines
		
	
	
		
			412 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			412 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
{ pkgs, lib, ... }: {
 | 
						|
  nixpkgs.hostPlatform = "aarch64-linux";
 | 
						|
 | 
						|
  boot = {
 | 
						|
    kernelPackages = pkgs.linuxPackagesFor (pkgs.callPackage ./bsp/linux-imx8.nix { });
 | 
						|
    kernelParams = [ "console=ttyLP0,115200n8" ];
 | 
						|
    loader.grub.enable = lib.mkDefault true;
 | 
						|
    initrd.includeDefaultModules = lib.mkForce false;
 | 
						|
  };
 | 
						|
 | 
						|
  disabledModules = [ "profiles/all-hardware.nix" ];
 | 
						|
 | 
						|
  hardware.deviceTree.enable = true;
 | 
						|
}
 |