From 6b3460f0b10f00b64ebaf9227ded719654771145 Mon Sep 17 00:00:00 2001 From: Jeremy Stucki Date: Fri, 26 Sep 2025 15:07:26 +0200 Subject: [PATCH] nixos/factorio: add extraArgs option --- nixos/modules/services/games/factorio.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/nixos/modules/services/games/factorio.nix b/nixos/modules/services/games/factorio.nix index 43eda28c095e..5412a7a53f9b 100644 --- a/nixos/modules/services/games/factorio.nix +++ b/nixos/modules/services/games/factorio.nix @@ -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