update gitlab runner config
This commit is contained in:
		
							parent
							
								
									0e2e304264
								
							
						
					
					
						commit
						7c08456872
					
				
					 2 changed files with 19 additions and 0 deletions
				
			
		| 
						 | 
					@ -42,6 +42,7 @@
 | 
				
			||||||
      lib = nixpkgs.lib;
 | 
					      lib = nixpkgs.lib;
 | 
				
			||||||
      common_modules = [
 | 
					      common_modules = [
 | 
				
			||||||
        ./system/configuration.nix
 | 
					        ./system/configuration.nix
 | 
				
			||||||
 | 
					        ./system/gitlab-runner.nix
 | 
				
			||||||
        # nur.nixosModules.nur
 | 
					        # nur.nixosModules.nur
 | 
				
			||||||
        inputs.hyprland.nixosModules.default
 | 
					        inputs.hyprland.nixosModules.default
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										18
									
								
								system/gitlab-runner.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								system/gitlab-runner.nix
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,18 @@
 | 
				
			||||||
 | 
					{ config, pkgs, lib, ... }: {
 | 
				
			||||||
 | 
					  boot.kernel.sysctl."net.ipv4.ip_forward" = true;
 | 
				
			||||||
 | 
					  virtualisation.docker.enable = true;
 | 
				
			||||||
 | 
					  services.gitlab-runner = with lib; {
 | 
				
			||||||
 | 
					    enable = true;
 | 
				
			||||||
 | 
					    concurrent = 4;
 | 
				
			||||||
 | 
					    services = {
 | 
				
			||||||
 | 
					      ci_test = {
 | 
				
			||||||
 | 
					        registrationConfigFile = "/srv/gitlab-runner/env/ci_test";
 | 
				
			||||||
 | 
					        dockerImage = "debian";
 | 
				
			||||||
 | 
					      };
 | 
				
			||||||
 | 
					      thoreb_builder = {
 | 
				
			||||||
 | 
					        registrationConfigFile = "/srv/gitlab-runner/env/thoreb_builder";
 | 
				
			||||||
 | 
					        dockerImage = "debian";
 | 
				
			||||||
 | 
					      };
 | 
				
			||||||
 | 
					    };
 | 
				
			||||||
 | 
					  };
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue