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
				
			
		|  | @ -5,7 +5,7 @@ | |||
| }: let | ||||
|   dataDir = "/var/lib/postgresql/16"; | ||||
| in { | ||||
|   config = lib.mkIf (config.host.postgres.enable && config.host.impermanence.enable) { | ||||
|   config = lib.mkIf (config.services.postgresql.enable && config.host.impermanence.enable) { | ||||
|     assertions = [ | ||||
|       { | ||||
|         assertion = config.services.postgresql.dataDir == dataDir; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue