cachix: fix shutdown hang
This commit is contained in:
		
							parent
							
								
									3f59aa318e
								
							
						
					
					
						commit
						abfddc0655
					
				
					 1 changed files with 6 additions and 2 deletions
				
			
		| 
						 | 
					@ -1,8 +1,12 @@
 | 
				
			||||||
{ pkgs, config, ... }: {
 | 
					{ pkgs, lib, config, ... }: {
 | 
				
			||||||
  services.cachix-watch-store = {
 | 
					  services.cachix-watch-store = {
 | 
				
			||||||
    enable = true;
 | 
					    enable = true;
 | 
				
			||||||
    cacheName = "lelgenio";
 | 
					    cacheName = "lelgenio";
 | 
				
			||||||
    cachixTokenFile = config.age.secrets.lelgenio-cachix.path;
 | 
					    cachixTokenFile = config.age.secrets.lelgenio-cachix.path;
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
  systemd.services.cachix-watch-store-agent.serviceConfig.TimeoutStopSec = 3;
 | 
					  systemd.services.cachix-watch-store-agent = {
 | 
				
			||||||
 | 
					    serviceConfig.TimeoutStopSec = 3;
 | 
				
			||||||
 | 
					    # If we don't do this, cachix tends to timeout
 | 
				
			||||||
 | 
					    serviceConfig.KillMode = lib.mkForce "control-group";
 | 
				
			||||||
 | 
					  };
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue