Fix usages of getExe in matrix containers

Signed-off-by: magic_rb <richard@brezak.sk>
This commit is contained in:
magic_rb 2023-10-07 20:25:38 +02:00
parent b56681fbab
commit 09f2f000cb
No known key found for this signature in database
GPG key ID: 08D5287CC5DDCA0E
3 changed files with 9 additions and 9 deletions

View file

@ -8,7 +8,7 @@
{ pkgs, lib, ... }:
let
inherit (lib)
getExe;
getExe';
in
{
dumb-init = {
@ -23,7 +23,7 @@
script = pkgs.writeShellScript "heisenbridge" ''
REGISTRATION_FILE="/var/lib/registrations/heisenbridge.yaml"
${getExe pkgs.heisenbridge} 'https://matrix.redalder.org/' \
${getExe' pkgs.heisenbridge "heisenbridge"} 'https://matrix.redalder.org/' \
-c "$REGISTRATION_FILE" \
$([ -e "$REGISTRATION_FILE" ] || echo "--generate") \
-l 127.0.0.1 \

View file

@ -18,7 +18,7 @@
script =
let
inherit (lib)
getExe;
getExe';
mautrix-discord = (pkgs.appendOverlays [ config.flake.overlays.mautrix-discord ]).mautrix-discord;
in
pkgs.writeShellScript "mautrix-discord"
@ -28,12 +28,12 @@
REGISTRATION_FILE="/var/lib/registrations/mautrix-discord.yaml"
DB_FILE="$DATA_DIR/sqlite.db"
${getExe pkgs.envsubst} < ${./mautrix-discord.yaml} > "$CONFIG_FILE"
${getExe' pkgs.envsubst "envsubst"} < ${./mautrix-discord.yaml} > "$CONFIG_FILE"
chmod 755 "$CONFIG_FILE"
[ -e "$REGISTRATION_FILE" ] || \
${getExe mautrix-discord} -c "$CONFIG_FILE" -r "$REGISTRATION_FILE" -g
${getExe mautrix-discord} -c "$CONFIG_FILE" -r "$REGISTRATION_FILE" -n
${getExe' mautrix-discord "mautrix-discord"} -c "$CONFIG_FILE" -r "$REGISTRATION_FILE" -g
${getExe' mautrix-discord "mautrix-discord"} -c "$CONFIG_FILE" -r "$REGISTRATION_FILE" -n
'';
};
};

View file

@ -24,8 +24,8 @@
cp ${./mautrix-signal.yaml} "$CONFIG_FILE" ; chmod 755 "$CONFIG_FILE"
[ -e "$REGISTRATION_FILE" ] || \
${lib.getExe pkgs.mautrix-signal} -c "$CONFIG_FILE" -r "$REGISTRATION_FILE" -g
${lib.getExe pkgs.mautrix-signal} -c "$CONFIG_FILE" -r "$REGISTRATION_FILE" -n
${lib.getExe' pkgs.mautrix-signal "mautrix-signal"} -c "$CONFIG_FILE" -r "$REGISTRATION_FILE" -g
${lib.getExe' pkgs.mautrix-signal "mautrix-signal"} -c "$CONFIG_FILE" -r "$REGISTRATION_FILE" -n
'';
};
@ -38,7 +38,7 @@
mkdir -p $(dirname $SOCKET_PATH)
export LANG=en_US.UTF-8
${lib.getExe pkgs.signald} -d $DATA_DIR -s $SOCKET_PATH
${lib.getExe' pkgs.signald "signald"} -d $DATA_DIR -s $SOCKET_PATH
'';
};
};