diff --git a/nixng/containers/matrix/mautrix-discord/default.nix b/nixng/containers/matrix/mautrix-discord/default.nix index 4982236..7e9f854 100644 --- a/nixng/containers/matrix/mautrix-discord/default.nix +++ b/nixng/containers/matrix/mautrix-discord/default.nix @@ -18,7 +18,8 @@ script = let inherit (lib) - getExe'; + getExe' + makeBinPath; mautrix-discord = (pkgs.appendOverlays [ config.flake.overlays.mautrix-discord ]).mautrix-discord; in pkgs.writeShellScript "mautrix-discord" @@ -31,6 +32,8 @@ ${getExe' pkgs.envsubst "envsubst"} < ${./mautrix-discord.yaml} > "$CONFIG_FILE" chmod 755 "$CONFIG_FILE" + export PATH="$PATH:${makeBinPath [ pkgs.lottieconverter ]};" + [ -e "$REGISTRATION_FILE" ] || \ ${getExe' mautrix-discord "mautrix-discord"} -c "$CONFIG_FILE" -r "$REGISTRATION_FILE" -g ${getExe' mautrix-discord "mautrix-discord"} -c "$CONFIG_FILE" -r "$REGISTRATION_FILE" -n