mirror of
				https://github.com/Stunkymonkey/nixos.git
				synced 2025-10-30 09:22:11 +01:00 
			
		
		
		
	serverle: use newer firmware
This commit is contained in:
		
							parent
							
								
									27d4442259
								
							
						
					
					
						commit
						496f8f39e0
					
				
					 1 changed files with 26 additions and 23 deletions
				
			
		|  | @ -1,34 +1,37 @@ | ||||||
| { config, pkgs, lib, ... }: | { config, pkgs, lib, ... }: | ||||||
| { | { | ||||||
|   boot.loader = { |   boot = { | ||||||
|     raspberryPi = { |     loader = { | ||||||
|       firmwareConfig = '' |       raspberryPi = { | ||||||
|         # Disable the ACT LED. |         firmwareConfig = '' | ||||||
|         dtparam=act_led_trigger=none |           # Disable the ACT LED. | ||||||
|         dtparam=act_led_activelow=off |           dtparam=act_led_trigger=none | ||||||
|         # Disable the PWR LED. |           dtparam=act_led_activelow=off | ||||||
|         # somehow this changed in firmware settings: https://github.com/raspberrypi/firmware/issues/1742 |           # Disable the PWR LED. | ||||||
|         #dtparam=pwr_led_trigger=default-on |           # somehow this changed in firmware settings: https://github.com/raspberrypi/firmware/issues/1742 | ||||||
|         dtparam=pwr_led_activelow=off |           #dtparam=pwr_led_trigger=default-on | ||||||
|  |           dtparam=pwr_led_activelow=off | ||||||
| 
 | 
 | ||||||
|         # Disable ethernet port LEDs |           # Disable ethernet port LEDs | ||||||
|         dtparam=eth0_led=4 |           dtparam=eth0_led=4 | ||||||
|         dtparam=eth1_led=4 |           dtparam=eth1_led=4 | ||||||
| 
 | 
 | ||||||
|         # Disable SD-Card pools |           # Disable SD-Card pools | ||||||
|         dtparam=sd_pool_once=on |           dtparam=sd_pool_once=on | ||||||
|       ''; |         ''; | ||||||
| 
 | 
 | ||||||
|       # the bootloader has to be enabled for fat systems. for ext use the other one. |         # the bootloader has to be enabled for fat systems. for ext use the other one. | ||||||
|       enable = true; |         enable = true; | ||||||
|       version = 4; |         version = 4; | ||||||
|  |       }; | ||||||
|  |       generic-extlinux-compatible.enable = false; | ||||||
|     }; |     }; | ||||||
|     generic-extlinux-compatible.enable = false; |     # Kernel configuration | ||||||
|  |     kernelParams = [ "cma=64M" "console=tty0" ]; | ||||||
|  |     # remove with 23.05 | ||||||
|  |     kernelPackages = pkgs.unstable.linuxKernel.packages.linux_rpi4; | ||||||
|   }; |   }; | ||||||
| 
 | 
 | ||||||
|   # Kernel configuration |  | ||||||
|   boot.kernelParams = [ "cma=64M" "console=tty0" ]; |  | ||||||
| 
 |  | ||||||
|   # Fix wifi disconnect |   # Fix wifi disconnect | ||||||
|   networking.networkmanager.wifi.powersave = false; |   networking.networkmanager.wifi.powersave = false; | ||||||
| } | } | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Felix Buehler
						Felix Buehler