Compare commits
	
		
			2 Commits
		
	
	
		
			9ca20b8e24
			...
			72cac1e8c6
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|  | 72cac1e8c6 | ||
|  | cf95749f84 | 
| @ -19,8 +19,8 @@ in | |||||||
|     # without modesetting, x server will be run by nvidia |     # without modesetting, x server will be run by nvidia | ||||||
|     services.xserver.videoDrivers = [  |     services.xserver.videoDrivers = [  | ||||||
|       "amdgpu" |       "amdgpu" | ||||||
|       "modesetting" |       # "modesetting" | ||||||
|       "nvidia"  |       "nvidia" | ||||||
|     ]; |     ]; | ||||||
| 
 | 
 | ||||||
|     # Enable OpenGL |     # Enable OpenGL | ||||||
| @ -39,20 +39,21 @@ in | |||||||
|     # Enable required Kernel Modules |     # Enable required Kernel Modules | ||||||
|     boot.initrd.kernelModules = [ |     boot.initrd.kernelModules = [ | ||||||
|       "amdgpu" |       "amdgpu" | ||||||
|       "nvidia" |       # "modesetting" | ||||||
|  |       # "nvidia" | ||||||
|       # "nvidia-drm" |       # "nvidia-drm" | ||||||
|       "nvidiafb" |       # "nvidiafb" | ||||||
|       # "nvidia-uvm" |       # # "nvidia-uvm" | ||||||
|       # "nvidia-modeset" |       # "nvidia-modeset" | ||||||
|       # "i2c-nvidia_gpu"     |       # "i2c-nvidia_gpu"     | ||||||
|     ]; |     ]; | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|     boot.kernelParams = [ |     boot.kernelParams = [ | ||||||
|       "amdgpu.modeset=1" |       # "amdgpu.modeset=1" | ||||||
|       "nvidia-drm.fbdev=1" |       # "nvidia-drm.fbdev=1" | ||||||
|       "nvidia-drm.modeset=1" |       # "nvidia-drm.modeset=0" | ||||||
|       #  "nvidia.NVreg_PreserveVideoMemoryAllocations=0" |       # #  "nvidia.NVreg_PreserveVideoMemoryAllocations=0" | ||||||
|       "amd_iommu=on" |       "amd_iommu=on" | ||||||
|       # "vfio-pci.ids=\"10de:2489,10de:228b\"" |       # "vfio-pci.ids=\"10de:2489,10de:228b\"" | ||||||
|       # "nomodeset" |       # "nomodeset" | ||||||
| @ -62,7 +63,7 @@ in | |||||||
| 
 | 
 | ||||||
|     # Blacklist intel and nouveau |     # Blacklist intel and nouveau | ||||||
|     boot.blacklistedKernelModules = [ |     boot.blacklistedKernelModules = [ | ||||||
|       "i915" |       # "i915" | ||||||
|       "nouveau" |       "nouveau" | ||||||
|       # "nvidia" |       # "nvidia" | ||||||
|       # "nvidia-drm" |       # "nvidia-drm" | ||||||
| @ -73,10 +74,10 @@ in | |||||||
|     ]; |     ]; | ||||||
| 
 | 
 | ||||||
|     # Extra blacklist nouveau |     # Extra blacklist nouveau | ||||||
|     boot.extraModprobeConfig = '' |     # boot.extraModprobeConfig = '' | ||||||
|       blacklist nouveau |     #   blacklist nouveau | ||||||
|       options nouveau modeset=0 |     #   options nouveau modeset=0 | ||||||
|     ''; |     # ''; | ||||||
| 
 | 
 | ||||||
|     # Configure NVIDIA driver |     # Configure NVIDIA driver | ||||||
|     hardware.nvidia = { |     hardware.nvidia = { | ||||||
| @ -118,7 +119,8 @@ in | |||||||
|           enable = true; |           enable = true; | ||||||
|           enableOffloadCmd = true; |           enableOffloadCmd = true; | ||||||
|         }; |         }; | ||||||
|         reverseSync.enable = false; |         # sync.enable=true; | ||||||
|  |         # reverseSync.enable = false; | ||||||
|         # Make sure to use the correct Bus ID values for your system! |         # Make sure to use the correct Bus ID values for your system! | ||||||
|         # intelBusId = "PCI:0:2:0"; |         # intelBusId = "PCI:0:2:0"; | ||||||
|         nvidiaBusId = "PCI:01:0:0"; |         nvidiaBusId = "PCI:01:0:0"; | ||||||
|  | |||||||
| @ -118,8 +118,12 @@ | |||||||
|   # services.openssh.enable = true; |   # services.openssh.enable = true; | ||||||
| 
 | 
 | ||||||
|   # Open ports in the firewall. |   # Open ports in the firewall. | ||||||
|   # networking.firewall.allowedTCPPorts = [ ... ]; |   networking.firewall.allowedTCPPorts = [  | ||||||
|   # networking.firewall.allowedUDPPorts = [ ... ]; |     24800 #Synergy | ||||||
|  |   ]; | ||||||
|  |   networking.firewall.allowedUDPPorts = [ | ||||||
|  |     24800 #Synergy | ||||||
|  |   ]; | ||||||
|   # Or disable the firewall altogether. |   # Or disable the firewall altogether. | ||||||
|   # networking.firewall.enable = false; |   # networking.firewall.enable = false; | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user