summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorSarah Brofeldt <sbrofeldt@gmail.com>2021-03-14 19:51:42 +0100
committerGitHub <noreply@github.com>2021-03-14 19:51:42 +0100
commit8c5e70287590c056e7022328f0f8f319b6f1174d (patch)
treebc18d300f4432841da23db312a1fc9af792bf1c0 /nixos
parent1ec933a65f6e2743217c51f0794005495efc8778 (diff)
parentd980362a95d5f2ac3af8122d521e445271a8afb6 (diff)
downloadnixpkgs-8c5e70287590c056e7022328f0f8f319b6f1174d.tar
nixpkgs-8c5e70287590c056e7022328f0f8f319b6f1174d.tar.gz
nixpkgs-8c5e70287590c056e7022328f0f8f319b6f1174d.tar.bz2
nixpkgs-8c5e70287590c056e7022328f0f8f319b6f1174d.tar.lz
nixpkgs-8c5e70287590c056e7022328f0f8f319b6f1174d.tar.xz
nixpkgs-8c5e70287590c056e7022328f0f8f319b6f1174d.tar.zst
nixpkgs-8c5e70287590c056e7022328f0f8f319b6f1174d.zip
Merge pull request #116084 from jonringer/bump-factorio
factorio: 1.1.26 -> 1.1.27
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/games/factorio.nix10
1 files changed, 10 insertions, 0 deletions
diff --git a/nixos/modules/services/games/factorio.nix b/nixos/modules/services/games/factorio.nix
index 73099ae3363..a1aa5739d06 100644
--- a/nixos/modules/services/games/factorio.nix
+++ b/nixos/modules/services/games/factorio.nix
@@ -36,6 +36,7 @@ let
     only_admins_can_pause_the_game = true;
     autosave_only_on_server = true;
     admins = [];
+    non_blocking_saving = cfg.nonBlockingSaving;
   } // cfg.extraSettings;
   serverSettingsFile = pkgs.writeText "server-settings.json" (builtins.toJSON (filterAttrsRecursive (n: v: v != null) serverSettings));
   modDir = pkgs.factorio-utils.mkModDirDrv cfg.mods;
@@ -193,6 +194,15 @@ in
           Autosave interval in minutes.
         '';
       };
+      nonBlockingSaving = mkOption {
+        type = types.bool;
+        default = false;
+        description = ''
+          Highly experimental feature, enable only at your own risk of losing your saves.
+          On UNIX systems, server will fork itself to create an autosave.
+          Autosaving on connected Windows clients will be disabled regardless of autosave_only_on_server option.
+        '';
+      };
     };
   };