forked from jan-leila/nix-config
		
	feat: refactored database configuration
This commit is contained in:
		
							parent
							
								
									e57c1df6e5
								
							
						
					
					
						commit
						f9c27c82b6
					
				
					 8 changed files with 229 additions and 204 deletions
				
			
		|  | @ -102,13 +102,6 @@ | |||
|         directories = ["leyla_documents" "eve_documents" "users_documents" "media"]; | ||||
|       }; | ||||
|     }; | ||||
|     postgres = { | ||||
|       extraUsers = { | ||||
|         leyla = { | ||||
|           isAdmin = true; | ||||
|         }; | ||||
|       }; | ||||
|     }; | ||||
|   }; | ||||
| 
 | ||||
|   systemd.network = { | ||||
|  | @ -220,6 +213,12 @@ | |||
|   }; | ||||
| 
 | ||||
|   services = { | ||||
|     # PostgreSQL database server | ||||
|     postgresql = { | ||||
|       enable = true; | ||||
|       adminUsers = ["leyla"]; | ||||
|     }; | ||||
| 
 | ||||
|     # temp enable desktop environment for setup | ||||
|     # Enable the X11 windowing system. | ||||
|     xserver.enable = true; | ||||
|  | @ -327,7 +326,7 @@ | |||
|       enable = true; | ||||
|       domain = "home.jan-leila.com"; | ||||
|       openFirewall = true; | ||||
|       database = "postgres"; | ||||
|       postgres.enable = true; | ||||
| 
 | ||||
|       extensions = { | ||||
|         sonos.enable = true; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue