mirror of
				https://github.com/NixOS/nixos-hardware.git
				synced 2025-11-04 09:17:14 +08:00 
			
		
		
		
	The common/pc/laptop/ssd folder was apparently moved a level up and was replaced by a symlink to keep things working. We can consolidate this now.
		
			
				
	
	
		
			25 lines
		
	
	
		
			691 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			691 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
{ pkgs, lib, ... }:
 | 
						|
 | 
						|
{
 | 
						|
  imports =
 | 
						|
    [
 | 
						|
      ../../../../common/cpu/amd
 | 
						|
      ../../../../common/cpu/amd/pstate.nix
 | 
						|
      ../../../../common/gpu/amd
 | 
						|
      ../../../../common/pc/laptop
 | 
						|
      ../../../../common/pc/ssd
 | 
						|
    ];
 | 
						|
 | 
						|
  hardware.enableRedistributableFirmware = lib.mkDefault true;
 | 
						|
  boot.kernelModules = [ "synaptics_usb" ];
 | 
						|
  boot.kernelPackages = lib.mkIf (lib.versionOlder pkgs.linux.version "6.3") (lib.mkDefault pkgs.linuxPackages_latest);
 | 
						|
 | 
						|
  # disable Scatter/Gather APU recently enabled by default,
 | 
						|
  # which results in white screen after display reconfiguration
 | 
						|
  boot.kernelParams = [ "amdgpu.sg_display=0" ];
 | 
						|
 | 
						|
  services.xserver = {
 | 
						|
    videoDrivers = [ "amdgpu" ];
 | 
						|
  };
 | 
						|
}
 |