summary refs log tree commit diff
path: root/nixos/modules/services/games
diff options
context:
space:
mode:
authorThiago Kenji Okada <thiagokokada@gmail.com>2022-03-29 14:17:01 +0100
committerGitHub <noreply@github.com>2022-03-29 14:17:01 +0100
commit24f71c6ea58b916195bdb4efdaea5f2233be58df (patch)
treed4033720bf6ef2f504dce422226bdfedb3f18942 /nixos/modules/services/games
parentbd98e2aa2685494043e8eaad7bacdc0e536b62a2 (diff)
parentc67758484f85a677c346af2fdbdb5d03e92cd2b5 (diff)
downloadnixpkgs-24f71c6ea58b916195bdb4efdaea5f2233be58df.tar
nixpkgs-24f71c6ea58b916195bdb4efdaea5f2233be58df.tar.gz
nixpkgs-24f71c6ea58b916195bdb4efdaea5f2233be58df.tar.bz2
nixpkgs-24f71c6ea58b916195bdb4efdaea5f2233be58df.tar.lz
nixpkgs-24f71c6ea58b916195bdb4efdaea5f2233be58df.tar.xz
nixpkgs-24f71c6ea58b916195bdb4efdaea5f2233be58df.tar.zst
nixpkgs-24f71c6ea58b916195bdb4efdaea5f2233be58df.zip
Merge pull request #161226 from Misterio77/master
nixos/factorio: add bind address option
Diffstat (limited to 'nixos/modules/services/games')
-rw-r--r--nixos/modules/services/games/factorio.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/nixos/modules/services/games/factorio.nix b/nixos/modules/services/games/factorio.nix
index 96fcd6d2c8b..ff73d7a46ed 100644
--- a/nixos/modules/services/games/factorio.nix
+++ b/nixos/modules/services/games/factorio.nix
@@ -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 {
         type = types.listOf types.str;
         default = [];
@@ -241,6 +249,7 @@ in
           "${cfg.package}/bin/factorio"
           "--config=${cfg.configFile}"
           "--port=${toString cfg.port}"
+          "--bind=${cfg.bind}"
           "--start-server=${mkSavePath cfg.saveName}"
           "--server-settings=${serverSettingsFile}"
           (optionalString (cfg.mods != []) "--mod-directory=${modDir}")