format files with nix fmt
		
	This commit is contained in:
		
					parent
					
						
							
								609a0a14c6
							
						
					
				
			
			
				commit
				
					
						12ed0e954b
					
				
			
		
					 16 changed files with 64 additions and 59 deletions
				
			
		|  | @ -1,10 +1,10 @@ | |||
| { ... }: | ||||
| 
 | ||||
| { | ||||
| 	networking = { | ||||
|         hostName = "mqtt"; | ||||
|         domain = "z9.ccchh.net"; | ||||
| 	}; | ||||
|   networking = { | ||||
|     hostName = "mqtt"; | ||||
|     domain = "z9.ccchh.net"; | ||||
|   }; | ||||
| 
 | ||||
| 	system.stateVersion = "23.11"; | ||||
| } | ||||
|   system.stateVersion = "23.11"; | ||||
| } | ||||
|  |  | |||
|  | @ -1,9 +1,9 @@ | |||
| { pkgs, ... }: | ||||
| 
 | ||||
| { | ||||
| 	imports = [ | ||||
| 		./configuration.nix | ||||
| 		./networking.nix | ||||
| 		./mosquitto.nix | ||||
| 	]; | ||||
| } | ||||
|   imports = [ | ||||
|     ./configuration.nix | ||||
|     ./networking.nix | ||||
|     ./mosquitto.nix | ||||
|   ]; | ||||
| } | ||||
|  |  | |||
|  | @ -5,29 +5,29 @@ | |||
| { ... }: | ||||
| 
 | ||||
| { | ||||
|     services.mosquitto = { | ||||
|         enable = true; | ||||
|         persistence = true; | ||||
|   services.mosquitto = { | ||||
|     enable = true; | ||||
|     persistence = true; | ||||
| 
 | ||||
|         # set config for all listeners | ||||
|         listeners = [ { | ||||
|             settings.allow_anonymous = true; | ||||
|             omitPasswordAuth = true; | ||||
|             acl = ["topic readwrite #"]; | ||||
|         } ]; | ||||
|     # set config for all listeners | ||||
|     listeners = [{ | ||||
|       settings.allow_anonymous = true; | ||||
|       omitPasswordAuth = true; | ||||
|       acl = [ "topic readwrite #" ]; | ||||
|     }]; | ||||
| 
 | ||||
|         bridges.winkekatz = { | ||||
|             addresses = [ | ||||
|                 { address = "mqtt.winkekatze24.de"; } | ||||
|             ]; | ||||
|             topics = [ | ||||
|                 "winkekatze/allcats/eye/set in 2" | ||||
|                 "winkekatze/allcats in 2" | ||||
|                 "+/status out 2 winkekatze/ \"\"" | ||||
|                 "+/connected out 2 winkekatze/ \"\"" | ||||
|             ]; | ||||
|         }; | ||||
|     bridges.winkekatz = { | ||||
|       addresses = [ | ||||
|         { address = "mqtt.winkekatze24.de"; } | ||||
|       ]; | ||||
|       topics = [ | ||||
|         "winkekatze/allcats/eye/set in 2" | ||||
|         "winkekatze/allcats in 2" | ||||
|         "+/status out 2 winkekatze/ \"\"" | ||||
|         "+/connected out 2 winkekatze/ \"\"" | ||||
|       ]; | ||||
|     }; | ||||
|   }; | ||||
| 
 | ||||
|     networking.firewall.allowedTCPPorts = [ 1883 ]; | ||||
| } | ||||
|   networking.firewall.allowedTCPPorts = [ 1883 ]; | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue