nixos/factorio: add extraArgs option (#446440)

This commit is contained in:
Luke Granger-Brown
2025-10-18 21:53:32 +00:00
committed by GitHub
+10
View File
@@ -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