| 
									
										
										
										
											2024-09-15 20:35:46 -04:00
										 |  |  | { pkgs, raspberry-pi-nix, ... }: | 
					
						
							| 
									
										
										
										
											2021-04-26 20:28:47 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | { | 
					
						
							| 
									
										
										
										
											2022-01-24 18:35:39 -05:00
										 |  |  |   imports = [ | 
					
						
							|  |  |  |     # Include the results of the hardware scan. | 
					
						
							| 
									
										
										
										
											2021-04-26 20:28:47 -04:00
										 |  |  |     ./hardware-configuration.nix | 
					
						
							| 
									
										
										
										
											2023-12-15 22:28:14 -05:00
										 |  |  |     ../../modules/base/nixos.nix | 
					
						
							| 
									
										
										
										
											2024-09-15 20:35:46 -04:00
										 |  |  |     raspberry-pi-nix.nixosModules.raspberry-pi | 
					
						
							| 
									
										
										
										
											2021-10-30 23:33:26 -04:00
										 |  |  |     ../../modules/ipfs/cluster.nix | 
					
						
							| 
									
										
										
										
											2021-11-15 21:26:30 -05:00
										 |  |  |     ../../modules/sops | 
					
						
							| 
									
										
										
										
											2021-04-26 20:28:47 -04:00
										 |  |  |   ]; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-10-01 13:34:13 -04:00
										 |  |  |   # See: https://github.com/NixOS/nixos-hardware/issues/858 | 
					
						
							|  |  |  |   boot.initrd.systemd.tpm2.enable = false; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-09-15 20:35:46 -04:00
										 |  |  |   raspberry-pi-nix.board = "bcm2711"; | 
					
						
							|  |  |  |   hardware.raspberry-pi.config = { | 
					
						
							|  |  |  |     all = { | 
					
						
							|  |  |  |       dt-overlays = { | 
					
						
							|  |  |  |         rpi-poe = { | 
					
						
							|  |  |  |           enable = true; | 
					
						
							| 
									
										
										
										
											2024-09-24 10:50:32 -04:00
										 |  |  |           params = { | 
					
						
							|  |  |  |             poe_fan_temp0 = { | 
					
						
							|  |  |  |               enable = true; | 
					
						
							|  |  |  |               value = 50000; | 
					
						
							|  |  |  |             }; | 
					
						
							|  |  |  |             poe_fan_temp1 = { | 
					
						
							|  |  |  |               enable = true; | 
					
						
							|  |  |  |               value = 60000; | 
					
						
							|  |  |  |             }; | 
					
						
							|  |  |  |             poe_fan_temp2 = { | 
					
						
							|  |  |  |               enable = true; | 
					
						
							|  |  |  |               value = 70000; | 
					
						
							|  |  |  |             }; | 
					
						
							|  |  |  |             poe_fan_temp3 = { | 
					
						
							|  |  |  |               enable = true; | 
					
						
							|  |  |  |               value = 80000; | 
					
						
							|  |  |  |             }; | 
					
						
							|  |  |  |           }; | 
					
						
							| 
									
										
										
										
											2024-09-15 20:35:46 -04:00
										 |  |  |         }; | 
					
						
							|  |  |  |       }; | 
					
						
							|  |  |  |     }; | 
					
						
							| 
									
										
										
										
											2023-09-10 14:27:05 -04:00
										 |  |  |   }; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-12-20 11:10:46 -05:00
										 |  |  |   time.timeZone = "America/Toronto"; | 
					
						
							| 
									
										
										
										
											2023-09-10 14:27:05 -04:00
										 |  |  |   networking = { | 
					
						
							|  |  |  |     # networking.hostName = "nixos"; # Define your hostname. | 
					
						
							|  |  |  |     # networking.wireless.enable = true;  # Enables wireless support via wpa_supplicant. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     # The global useDHCP flag is deprecated, therefore explicitly set to false here. | 
					
						
							|  |  |  |     # Per-interface useDHCP will be mandatory in the future, so this generated config | 
					
						
							|  |  |  |     # replicates the default behaviour. | 
					
						
							|  |  |  |     useDHCP = false; | 
					
						
							|  |  |  |     interfaces.eth0.useDHCP = true; | 
					
						
							|  |  |  |     interfaces.wlan0.useDHCP = true; | 
					
						
							|  |  |  |     firewall.enable = false; | 
					
						
							|  |  |  |   }; | 
					
						
							| 
									
										
										
										
											2021-04-26 20:28:47 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  |   users.users.root.openssh.authorizedKeys.keys = [ | 
					
						
							|  |  |  |     "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJ0mE4MyMnfd1b2nlBJT7kpZ6Vov+ILuGNfzdp5ZBNQe walkah@walkah.net" | 
					
						
							|  |  |  |   ]; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-12-07 20:46:15 -05:00
										 |  |  |   environment.systemPackages = with pkgs; [ | 
					
						
							|  |  |  |     libraspberrypi | 
					
						
							|  |  |  |     raspberrypi-eeprom | 
					
						
							|  |  |  |   ]; | 
					
						
							| 
									
										
										
										
											2024-09-15 20:35:46 -04:00
										 |  |  |   security.sudo.wheelNeedsPassword = false; | 
					
						
							| 
									
										
										
										
											2021-04-26 20:28:47 -04:00
										 |  |  | } |