factorio: automate updating server
This commit is contained in:
		
							parent
							
								
									4e1ca64d0e
								
							
						
					
					
						commit
						7ccbca83bc
					
				
					 4 changed files with 28 additions and 8 deletions
				
			
		| 
						 | 
				
			
			@ -2,14 +2,7 @@
 | 
			
		|||
{
 | 
			
		||||
  services.factorio = {
 | 
			
		||||
    enable = true;
 | 
			
		||||
    package = pkgs.unstable.factorio-headless.overrideAttrs (_: rec {
 | 
			
		||||
      version = "2.0.12";
 | 
			
		||||
      src = pkgs.fetchurl {
 | 
			
		||||
        name = "factorio_headless_x64-${version}.tar.xz";
 | 
			
		||||
        url = "https://www.factorio.com/get-download/${version}/headless/linux64";
 | 
			
		||||
        hash = "sha256-0vgg5eJ6ZEFO0TUixNsByCs8YyPGOArgqnXbT5RIjTE=";
 | 
			
		||||
      };
 | 
			
		||||
    });
 | 
			
		||||
    package = pkgs.factorio-headless; # I override this in ./pkgs
 | 
			
		||||
    public = true;
 | 
			
		||||
    lan = true;
 | 
			
		||||
    openFirewall = true;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue