mirror of
				https://github.com/NixOS/nixos-hardware.git
				synced 2025-11-04 09:17:14 +08:00 
			
		
		
		
	add dell precision 3541
This commit is contained in:
		
							
								
								
									
										28
									
								
								dell/precision/3541/default.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										28
									
								
								dell/precision/3541/default.nix
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,28 @@
 | 
			
		||||
{ lib, ... }:
 | 
			
		||||
 | 
			
		||||
{
 | 
			
		||||
  imports = [
 | 
			
		||||
    ./intel
 | 
			
		||||
  ];
 | 
			
		||||
 | 
			
		||||
  # Boot loader
 | 
			
		||||
  boot.kernelParams = [
 | 
			
		||||
    # fix lspci hanging with nouveau
 | 
			
		||||
    # source https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1803179/comments/149
 | 
			
		||||
    "acpi_rev_override=1"
 | 
			
		||||
    "acpi_osi=Linux"
 | 
			
		||||
    "nouveau.modeset=0"
 | 
			
		||||
    "pcie_aspm=force"
 | 
			
		||||
    "drm.vblankoffdelay=1"
 | 
			
		||||
    "nouveau.runpm=0"
 | 
			
		||||
    "mem_sleep_default=deep"
 | 
			
		||||
    # fix flicker
 | 
			
		||||
    # source https://wiki.archlinux.org/index.php/Intel_graphics#Screen_flickering
 | 
			
		||||
    "i915.enable_psr=0"
 | 
			
		||||
  ];
 | 
			
		||||
 | 
			
		||||
  boot.kernelModules = lib.mkDefault [ "kvm-intel" ];
 | 
			
		||||
 | 
			
		||||
  # Recommended in NixOS/nixos-hardware#127
 | 
			
		||||
  services.thermald.enable = lib.mkDefault true;
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										9
									
								
								dell/precision/3541/intel/default.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								dell/precision/3541/intel/default.nix
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,9 @@
 | 
			
		||||
{ lib, pkgs, ... }:
 | 
			
		||||
 | 
			
		||||
{
 | 
			
		||||
  imports = [
 | 
			
		||||
    ../../../../common/cpu/intel
 | 
			
		||||
    ../../../../common/pc/laptop
 | 
			
		||||
    ../../../../common/gpu/nvidia/disable.nix
 | 
			
		||||
  ];
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user