nixos/factorio: add nonBlockingSaving option
This commit is contained in:
parent
fcdb8bfaf1
commit
d980362a95
@ -36,6 +36,7 @@ let
|
|||||||
only_admins_can_pause_the_game = true;
|
only_admins_can_pause_the_game = true;
|
||||||
autosave_only_on_server = true;
|
autosave_only_on_server = true;
|
||||||
admins = [];
|
admins = [];
|
||||||
|
non_blocking_saving = cfg.nonBlockingSaving;
|
||||||
} // cfg.extraSettings;
|
} // cfg.extraSettings;
|
||||||
serverSettingsFile = pkgs.writeText "server-settings.json" (builtins.toJSON (filterAttrsRecursive (n: v: v != null) serverSettings));
|
serverSettingsFile = pkgs.writeText "server-settings.json" (builtins.toJSON (filterAttrsRecursive (n: v: v != null) serverSettings));
|
||||||
modDir = pkgs.factorio-utils.mkModDirDrv cfg.mods;
|
modDir = pkgs.factorio-utils.mkModDirDrv cfg.mods;
|
||||||
@ -193,6 +194,15 @@ in
|
|||||||
Autosave interval in minutes.
|
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.
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user