summary refs log tree commit diff
path: root/nixos/modules/services/games
diff options
context:
space:
mode:
authorGabriel Fontes <eu@misterio.me>2022-02-19 20:56:06 -0300
committerGabriel Fontes <eu@misterio.me>2022-02-21 09:41:32 -0300
commitc67758484f85a677c346af2fdbdb5d03e92cd2b5 (patch)
tree2f6cfffde2bac5f0db8864796dab241c57fa4431 /nixos/modules/services/games
parentab4c14fc09365d05c44ae5c63de8c29f2bf77386 (diff)
downloadnixpkgs-c67758484f85a677c346af2fdbdb5d03e92cd2b5.tar
nixpkgs-c67758484f85a677c346af2fdbdb5d03e92cd2b5.tar.gz
nixpkgs-c67758484f85a677c346af2fdbdb5d03e92cd2b5.tar.bz2
nixpkgs-c67758484f85a677c346af2fdbdb5d03e92cd2b5.tar.lz
nixpkgs-c67758484f85a677c346af2fdbdb5d03e92cd2b5.tar.xz
nixpkgs-c67758484f85a677c346af2fdbdb5d03e92cd2b5.tar.zst
nixpkgs-c67758484f85a677c346af2fdbdb5d03e92cd2b5.zip
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}")