Add woodpecker host running a woodpecker-server and -agent for CI
This commit is contained in:
		
					parent
					
						
							
								dfcb961fd3
							
						
					
				
			
			
				commit
				
					
						df17b25009
					
				
			
		
					 15 changed files with 503 additions and 0 deletions
				
			
		
							
								
								
									
										18
									
								
								config/hosts/woodpecker/woodpecker-server/postgresql.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								config/hosts/woodpecker/woodpecker-server/postgresql.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,18 @@ | |||
| # Sources for this configuration: | ||||
| # - https://github.com/NixOS/nixpkgs/blob/dce84c46d780b20c064d5dfb10d0686e0584a198/nixos/modules/services/web-apps/nextcloud.nix#L1069 | ||||
| 
 | ||||
| { config, pkgs, ... }: | ||||
| 
 | ||||
| { | ||||
|   services.postgresql = { | ||||
|     enable = true; | ||||
|     package = pkgs.postgresql_15; | ||||
|     ensureDatabases = [ "woodpecker-server" ]; | ||||
|     ensureUsers = [ | ||||
|       { | ||||
|         name = "woodpecker-server"; | ||||
|         ensureDBOwnership = true; | ||||
|       } | ||||
|     ]; | ||||
|   }; | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue