mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-21 23:54:22 +01:00
Fix usages of getExe
in matrix containers
Signed-off-by: magic_rb <richard@brezak.sk>
This commit is contained in:
parent
b56681fbab
commit
09f2f000cb
|
@ -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 \
|
||||
|
|
|
@ -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
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
|
|
@ -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
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue