diff --git a/modules/services/networking/ssh/sshd.nix b/modules/services/networking/ssh/sshd.nix index dc1d8537142..e02b755a516 100644 --- a/modules/services/networking/ssh/sshd.nix +++ b/modules/services/networking/ssh/sshd.nix @@ -129,7 +129,11 @@ in startOn = "started network-interfaces"; - environment = { LD_LIBRARY_PATH = nssModulesPath; }; + environment = { + LD_LIBRARY_PATH = nssModulesPath; + # Duplicated from bashrc. OpenSSH needs a patch for this. + LOCALE_ARCHIVE = "/var/run/current-system/sw/lib/locale/locale-archive"; + }; preStart = ''