diff options
author | Sarah Brofeldt <sbrofeldt@gmail.com> | 2021-03-14 19:51:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-14 19:51:42 +0100 |
commit | 8c5e70287590c056e7022328f0f8f319b6f1174d (patch) | |
tree | bc18d300f4432841da23db312a1fc9af792bf1c0 /nixos/modules | |
parent | 1ec933a65f6e2743217c51f0794005495efc8778 (diff) | |
parent | d980362a95d5f2ac3af8122d521e445271a8afb6 (diff) |
Merge pull request #116084 from jonringer/bump-factorio
factorio: 1.1.26 -> 1.1.27
Diffstat (limited to 'nixos/modules')
-rw-r--r-- | nixos/modules/services/games/factorio.nix | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/nixos/modules/services/games/factorio.nix b/nixos/modules/services/games/factorio.nix index 73099ae33634a..a1aa5739d06b2 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. + ''; + }; }; }; |