anchor.diff:        preStart = toString [
           "test -e ${stateDir}/saves/${cfg.saveName}.zip"
           "||"
  -        "${factorio}/bin/factorio"
  +        "${cfg.package}/bin/factorio"
             "--config=${cfg.configFile}"
             "--create=${mkSavePath cfg.saveName}"
             (optionalString (cfg.mods != []) "--mod-directory=${modDir}")
  
positive.code:         StateDirectory = cfg.stateDirName;
          UMask = "0007";
          ExecStart = toString [
            "${factorio}/bin/factorio"
            "--config=${cfg.configFile}"
            "--port=${toString cfg.port}"
            "--start-server=${mkSavePath cfg.saveName}"
  
negative.code:     only_admins_can_pause_the_game = true;
      autosave_only_on_server = true;
      admins = [];
    } // cfg.extraSettings;
    serverSettingsFile = pkgs.writeText "server-settings.json" (builtins.toJSON (filterAttrsRecursive (n: v: v != null) serverSettings));
    modDir = pkgs.factorio-utils.mkModDirDrv cfg.mods;
  in
  