nixos configs
at main 28 lines 776 B view raw
1{ pkgs, ... }: { 2 services.factorio = { 3 enable = true; 4 nonBlockingSaving = true; 5 openFirewall = true; 6 allowedPlayers = [ 7 "bates64" 8 "AgsterMC" 9 "asparagoose" 10 "spchee" 11 "IntactLightbulb" 12 "minimento" 13 ]; 14 # https://forums.factorio.com/viewtopic.php?t=117096 15 package = pkgs.stdenv.mkDerivation { 16 name = "factorio-headless-no-space-age"; 17 src = pkgs.factorio-headless.src; 18 buildInputs = [ pkgs.rsync ]; 19 buildPhase = '' 20 mkdir -p $out 21 ${pkgs.rsync}/bin/rsync -a --exclude='share/factorio/data/quality' \ 22 --exclude='share/factorio/data/elevated-rails' \ 23 --exclude='share/factorio/data/space-age' \ 24 ${pkgs.factorio-headless}/ $out 25 ''; 26 }; 27 }; 28}