From e1281c7a9d775ae620e1f934f2253a2913eb652c Mon Sep 17 00:00:00 2001 From: Felix Buehler Date: Mon, 2 Sep 2024 23:47:15 +0200 Subject: [PATCH] nixos/services.factorio: fix escapeShellArg --- nixos/modules/services/games/factorio.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"));