diff --git a/nixos/modules/services/games/factorio.nix b/nixos/modules/services/games/factorio.nix index c1d9731b842d..a9a4f386e060 100644 --- a/nixos/modules/services/games/factorio.nix +++ b/nixos/modules/services/games/factorio.nix @@ -275,7 +275,7 @@ in "--create=${mkSavePath cfg.saveName}" (lib.optionalString (cfg.mods != []) "--mod-directory=${modDir}") ]) - + (lib.optionalString (cfg.extraSettingsFile != null) ("\necho ${lib.strings.lib.escapeShellArg serverSettingsString}" + + (lib.optionalString (cfg.extraSettingsFile != null) ("\necho ${lib.strings.escapeShellArg serverSettingsString}" + " \"$(cat ${cfg.extraSettingsFile})\" | ${lib.getExe pkgs.jq} -s add" + " > ${stateDir}/server-settings.json"));