phantom: add factorio server
This commit is contained in:
		
							parent
							
								
									26993eadbc
								
							
						
					
					
						commit
						356a886fb2
					
				
					 4 changed files with 26 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -21,6 +21,7 @@
 | 
			
		|||
    ./invidious.nix
 | 
			
		||||
    ./davi.nix
 | 
			
		||||
    ./goofs.nix
 | 
			
		||||
    ./factorio-server.nix
 | 
			
		||||
  ];
 | 
			
		||||
 | 
			
		||||
  networking.hostName = "phantom";
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										24
									
								
								hosts/phantom/factorio-server.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										24
									
								
								hosts/phantom/factorio-server.nix
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,24 @@
 | 
			
		|||
{ config, pkgs, ... }:
 | 
			
		||||
{
 | 
			
		||||
  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=";
 | 
			
		||||
      };
 | 
			
		||||
    });
 | 
			
		||||
    public = true;
 | 
			
		||||
    lan = true;
 | 
			
		||||
    openFirewall = true;
 | 
			
		||||
    admins = [ "lelgenio" ];
 | 
			
		||||
    extraSettingsFile = config.age.secrets.phantom-factorio-settings.path;
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  age.secrets.phantom-factorio-settings = {
 | 
			
		||||
    file = ../../secrets/phantom-factorio-settings.age;
 | 
			
		||||
    mode = "777";
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										
											BIN
										
									
								
								secrets/phantom-factorio-settings.age
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								secrets/phantom-factorio-settings.age
									
										
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
						 | 
				
			
			@ -12,6 +12,7 @@ in
 | 
			
		|||
  "monolith-forgejo-runner-token.age".publicKeys = [ main_ssh_public_key ];
 | 
			
		||||
  "lelgenio-cachix.age".publicKeys = [ main_ssh_public_key ];
 | 
			
		||||
  "monolith-nix-serve-privkey.age".publicKeys = [ main_ssh_public_key ];
 | 
			
		||||
  "phantom-factorio-settings.age".publicKeys = [ main_ssh_public_key ];
 | 
			
		||||
  "phantom-nextcloud.age".publicKeys = [ main_ssh_public_key ];
 | 
			
		||||
  "phantom-writefreely.age".publicKeys = [ main_ssh_public_key ];
 | 
			
		||||
  "phantom-renawiki.age".publicKeys = [ main_ssh_public_key ];
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue