mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-22 08:04:20 +01:00
Attempt to fix signal locale
Signed-off-by: magic_rb <richard@brezak.sk>
This commit is contained in:
parent
310b9456ec
commit
801b59a8cf
|
@ -32,14 +32,26 @@
|
|||
init.services.signald = {
|
||||
enabled = true;
|
||||
shutdownOnExit = true;
|
||||
script = pkgs.writeShellScript "signald" ''
|
||||
DATA_DIR="/var/lib/signald"
|
||||
SOCKET_PATH="/var/run/signald/signald.sock"
|
||||
mkdir -p $(dirname $SOCKET_PATH)
|
||||
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
|
||||
${lib.getExe' pkgs.signald "signald"} -d $DATA_DIR -s $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
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue