| 
									
										
										
										
											2020-11-16 21:14:46 +01:00
										 |  |  | { config, pkgs, lib, ... }: | 
					
						
							|  |  |  | { | 
					
						
							| 
									
										
										
										
											2022-11-09 22:21:41 +01:00
										 |  |  |   boot.loader = { | 
					
						
							|  |  |  |     raspberryPi = { | 
					
						
							|  |  |  |       firmwareConfig = ''
 | 
					
						
							|  |  |  |         # Disable the ACT LED. | 
					
						
							|  |  |  |         dtparam=act_led_trigger=none | 
					
						
							|  |  |  |         dtparam=act_led_activelow=off | 
					
						
							|  |  |  |         # Disable the PWR LED. | 
					
						
							| 
									
										
										
										
											2023-01-12 23:23:24 +01:00
										 |  |  |         # somehow this changed in firmware settings: https://github.com/raspberrypi/firmware/issues/1742 | 
					
						
							|  |  |  |         #dtparam=pwr_led_trigger=default-on | 
					
						
							| 
									
										
										
										
											2022-11-09 22:21:41 +01:00
										 |  |  |         dtparam=pwr_led_activelow=off | 
					
						
							| 
									
										
										
										
											2021-03-10 13:20:19 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-11-09 22:21:41 +01:00
										 |  |  |         # Disable ethernet port LEDs | 
					
						
							|  |  |  |         dtparam=eth0_led=4 | 
					
						
							|  |  |  |         dtparam=eth1_led=4 | 
					
						
							| 
									
										
										
										
											2023-04-02 17:47:07 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-11-09 22:21:41 +01:00
										 |  |  |         # Disable SD-Card pools | 
					
						
							|  |  |  |         dtparam=sd_pool_once=on | 
					
						
							|  |  |  |       '';
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |       # the bootloader has to be enabled for fat systems. for ext use the other one. | 
					
						
							|  |  |  |       enable = true; | 
					
						
							|  |  |  |       version = 4; | 
					
						
							|  |  |  |     }; | 
					
						
							|  |  |  |     generic-extlinux-compatible.enable = false; | 
					
						
							|  |  |  |   }; | 
					
						
							| 
									
										
										
										
											2020-11-16 21:14:46 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  |   # Kernel configuration | 
					
						
							|  |  |  |   boot.kernelParams = [ "cma=64M" "console=tty0" ]; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-11-30 23:15:29 +01:00
										 |  |  |   # Fix wifi disconnect | 
					
						
							|  |  |  |   networking.networkmanager.wifi.powersave = false; | 
					
						
							| 
									
										
										
										
											2020-11-16 21:14:46 +01:00
										 |  |  | } |