Skip to content

Commit df24056

Browse files
authored
nixos/factorio: add extraArgs option (NixOS#446440)
2 parents e8d50d6 + 6b3460f commit df24056

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

nixos/modules/services/games/factorio.nix

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,15 @@ in
296296
Autosaving on connected Windows clients will be disabled regardless of autosave_only_on_server option.
297297
'';
298298
};
299+
extraArgs = lib.mkOption {
300+
type = lib.types.listOf lib.types.str;
301+
default = [ ];
302+
example = [
303+
"--rcon-bind=localhost:27015"
304+
"--rcon-password=..."
305+
];
306+
description = "Extra command line arguments.";
307+
};
299308
};
300309
};
301310

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

345355
# Sandboxing

0 commit comments

Comments
 (0)