mirror of
				https://github.com/NixOS/nixos-hardware.git
				synced 2025-11-04 17:27:14 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			27 lines
		
	
	
		
			676 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			676 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
{
 | 
						|
  lib,
 | 
						|
  pkgs,
 | 
						|
  config,
 | 
						|
  ...
 | 
						|
}:
 | 
						|
{
 | 
						|
  imports = [
 | 
						|
    ../../../../common/cpu/amd
 | 
						|
    ../../../../common/cpu/amd/pstate.nix
 | 
						|
    ../../../../common/cpu/amd/raphael/igpu.nix
 | 
						|
    ../../../../common/pc/laptop
 | 
						|
    ../../../../common/pc/ssd
 | 
						|
  ];
 | 
						|
 | 
						|
  # Fixing a power-issue with older kernels.
 | 
						|
  # When powered off, the battery does not turn off completely.
 | 
						|
  # Kernel 6.6.35 apparently does not have this issue,
 | 
						|
  # the exact version is still unknown which fixed this.
 | 
						|
  boot.kernelPackages = lib.mkIf (lib.versionOlder pkgs.linux.version "6.6.35") (
 | 
						|
    if (config.boot.zfs.enabled) then
 | 
						|
      pkgs.zfs.latestCompatibleLinuxPackages
 | 
						|
    else
 | 
						|
      pkgs.linuxPackages_latest
 | 
						|
  );
 | 
						|
}
 |