refactor(system): flatten
This commit is contained in:
		
							parent
							
								
									ef1482a65a
								
							
						
					
					
						commit
						8298fc375a
					
				
					 42 changed files with 239 additions and 89 deletions
				
			
		
							
								
								
									
										18
									
								
								inputs/system/modules/base/networking/firewall.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								inputs/system/modules/base/networking/firewall.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,18 @@ | |||
| { lib, config, ... }: | ||||
| 
 | ||||
| let | ||||
|   inherit (lib) mkIf; | ||||
|   host = config.systemModules.host; | ||||
| in | ||||
| 
 | ||||
| { | ||||
|   config = mkIf (host.type != "phone") { | ||||
|     networking.firewall = { | ||||
|       enable = true; | ||||
|       allowedTCPPorts = [ | ||||
|         443 # https | ||||
|         57621 # spotify | ||||
|       ]; | ||||
|     }; | ||||
|   }; | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue