Unverified Commit df240560 authored by Luke Granger-Brown's avatar Luke Granger-Brown Committed by GitHub
Browse files

nixos/factorio: add extraArgs option (#446440)

parents e8d50d6c 6b3460f0
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -296,6 +296,15 @@ in
          Autosaving on connected Windows clients will be disabled regardless of autosave_only_on_server option.
        '';
      };
      extraArgs = lib.mkOption {
        type = lib.types.listOf lib.types.str;
        default = [ ];
        example = [
          "--rcon-bind=localhost:27015"
          "--rcon-password=..."
        ];
        description = "Extra command line arguments.";
      };
    };
  };

@@ -340,6 +349,7 @@ in
          (playerListOption "server-adminlist" cfg.admins)
          (playerListOption "server-whitelist" cfg.allowedPlayers)
          (lib.optionalString (cfg.allowedPlayers != [ ]) "--use-server-whitelist")
          cfg.extraArgs
        ];

        # Sandboxing