Merge pull request #161226 from Misterio77/master
nixos/factorio: add bind address option
This commit is contained in:
commit
24f71c6ea5
1 changed files with 9 additions and 0 deletions
|
@ -53,6 +53,14 @@ in
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
bind = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
default = "0.0.0.0";
|
||||||
|
description = ''
|
||||||
|
The address to which the service should bind.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
admins = mkOption {
|
admins = mkOption {
|
||||||
type = types.listOf types.str;
|
type = types.listOf types.str;
|
||||||
default = [];
|
default = [];
|
||||||
|
@ -241,6 +249,7 @@ in
|
||||||
"${cfg.package}/bin/factorio"
|
"${cfg.package}/bin/factorio"
|
||||||
"--config=${cfg.configFile}"
|
"--config=${cfg.configFile}"
|
||||||
"--port=${toString cfg.port}"
|
"--port=${toString cfg.port}"
|
||||||
|
"--bind=${cfg.bind}"
|
||||||
"--start-server=${mkSavePath cfg.saveName}"
|
"--start-server=${mkSavePath cfg.saveName}"
|
||||||
"--server-settings=${serverSettingsFile}"
|
"--server-settings=${serverSettingsFile}"
|
||||||
(optionalString (cfg.mods != []) "--mod-directory=${modDir}")
|
(optionalString (cfg.mods != []) "--mod-directory=${modDir}")
|
||||||
|
|
Loading…
Reference in a new issue