mirror of
				https://github.com/NixOS/nixos-hardware.git
				synced 2025-11-04 17:27:14 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			26 lines
		
	
	
		
			542 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			542 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
{
 | 
						|
  config,
 | 
						|
  lib,
 | 
						|
  pkgs,
 | 
						|
  ...
 | 
						|
}:
 | 
						|
 | 
						|
{
 | 
						|
  imports = [
 | 
						|
    ../../common/cpu/amd
 | 
						|
    ../../common/cpu/amd/pstate.nix
 | 
						|
    ../../common/cpu/amd/zenpower.nix
 | 
						|
    ../../common/gpu/amd
 | 
						|
    ../../common/pc/ssd
 | 
						|
  ];
 | 
						|
 | 
						|
  boot.kernelPackages = lib.mkIf (lib.versionOlder pkgs.linux.version "6.14") (
 | 
						|
    lib.mkDefault pkgs.linuxPackages_latest
 | 
						|
  );
 | 
						|
  boot.kernelModules = [ "amdgpu" ];
 | 
						|
 | 
						|
  hardware.enableRedistributableFirmware = lib.mkDefault true;
 | 
						|
  hardware.graphics.enable = lib.mkDefault true;
 | 
						|
  hardware.graphics.enable32Bit = lib.mkDefault true;
 | 
						|
}
 |