Attempt to fix signal locale

Signed-off-by: magic_rb <richard@brezak.sk>
This commit is contained in:
magic_rb 2023-10-18 15:30:54 +02:00
parent 310b9456ec
commit 801b59a8cf
No known key found for this signature in database
GPG key ID: 08D5287CC5DDCA0E

View file

@ -32,12 +32,24 @@
init.services.signald = {
enabled = true;
shutdownOnExit = true;
script = pkgs.writeShellScript "signald" ''
script =
let
locales =
[
"C.UTF-8"
"en_US.UTF-8"
];
i18n = pkgs.glibcLocales.override {
inherit locales;
};
in
pkgs.writeShellScript "signald" ''
DATA_DIR="/var/lib/signald"
SOCKET_PATH="/var/run/signald/signald.sock"
mkdir -p $(dirname $SOCKET_PATH)
export LANG=en_US.UTF-8
export LOCALE_ARCHIVE=${i18n}/lib/locale/locale-archive
${lib.getExe' pkgs.signald "signald"} -d $DATA_DIR -s $SOCKET_PATH
'';
};