mirror of
				https://github.com/Stunkymonkey/nixos.git
				synced 2025-11-04 11:36:57 +01:00 
			
		
		
		
	
		
			
	
	
		
			30 lines
		
	
	
	
		
			583 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
		
		
			
		
	
	
			30 lines
		
	
	
	
		
			583 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
| 
								 | 
							
								{ config, lib, pkgs, ... }:
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								{
							 | 
						||
| 
								 | 
							
								  # Enable all firmware modules, so that bluetooth and wifi modules can load
							 | 
						||
| 
								 | 
							
								  # https://github.com/NixOS/nixpkgs/issues/85377#issuecomment-616424682
							 | 
						||
| 
								 | 
							
								  hardware.enableRedistributableFirmware = true;
							 | 
						||
| 
								 | 
							
								  hardware.enableAllFirmware = true;
							 | 
						||
| 
								 | 
							
								  nixpkgs.config.allowUnfree = true;
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								  boot.initrd = {
							 | 
						||
| 
								 | 
							
								    availableKernelModules = [
							 | 
						||
| 
								 | 
							
								      "ahci"
							 | 
						||
| 
								 | 
							
								      "e1000e"
							 | 
						||
| 
								 | 
							
								      "ehci_pci"
							 | 
						||
| 
								 | 
							
								      "nvme"
							 | 
						||
| 
								 | 
							
								      "sd_mod"
							 | 
						||
| 
								 | 
							
								      "uas"
							 | 
						||
| 
								 | 
							
								      "usbhid"
							 | 
						||
| 
								 | 
							
								      "usb_storage"
							 | 
						||
| 
								 | 
							
								      "xhci_pci"
							 | 
						||
| 
								 | 
							
								    ];
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								    kernelModules = [
							 | 
						||
| 
								 | 
							
								      "dm-snapshot"
							 | 
						||
| 
								 | 
							
								      "e1000e"
							 | 
						||
| 
								 | 
							
								      "nvme"
							 | 
						||
| 
								 | 
							
								    ];
							 | 
						||
| 
								 | 
							
								  };
							 | 
						||
| 
								 | 
							
								}
							 |