1 diff --git i/session.c w/session.c
2 index 58826db1..658dd911 100644
5 @@ -1053,6 +1053,10 @@ do_setup_env(struct ssh *ssh, Session *s, const char *shell)
7 child_set_env(&env, &envsize, "TZ", getenv("TZ"));
9 + /* NixOS path to the glibc locale archive, to be set in the systemd job */
10 + if (getenv("LOCALE_ARCHIVE"))
11 + child_set_env(&env, &envsize, "LOCALE_ARCHIVE", getenv("LOCALE_ARCHIVE"));
13 /* Set custom environment options from pubkey authentication. */
14 if (options.permit_user_env) {
15 for (n = 0 ; n < auth_opts->nenv; n++) {