Set $LOCALE_ARCHIVE in all systemd units
This variable used to be inherited implicitly from the stage-2 script, but systemd now clears the environment. So we need to set it explicitly.
This commit is contained in:
parent
313c38d5f1
commit
465d6ff572
@ -76,7 +76,12 @@ in
|
|||||||
|
|
||||||
environment.systemPackages = [ glibcLocales ];
|
environment.systemPackages = [ glibcLocales ];
|
||||||
|
|
||||||
environment.variables.LANG = config.i18n.defaultLocale;
|
environment.variables =
|
||||||
|
{ LANG = config.i18n.defaultLocale;
|
||||||
|
LOCALE_ARCHIVE = "/run/current-system/sw/lib/locale/locale-archive";
|
||||||
|
};
|
||||||
|
|
||||||
|
systemd.globalEnvironment.LOCALE_ARCHIVE = "${glibcLocales}/lib/locale/locale-archive";
|
||||||
|
|
||||||
# ‘/etc/locale.conf’ is used by systemd.
|
# ‘/etc/locale.conf’ is used by systemd.
|
||||||
environment.etc = singleton
|
environment.etc = singleton
|
||||||
|
@ -17,8 +17,7 @@ in
|
|||||||
config = {
|
config = {
|
||||||
|
|
||||||
environment.variables =
|
environment.variables =
|
||||||
{ LOCALE_ARCHIVE = "/run/current-system/sw/lib/locale/locale-archive";
|
{ LOCATE_PATH = "/var/cache/locatedb";
|
||||||
LOCATE_PATH = "/var/cache/locatedb";
|
|
||||||
NIXPKGS_CONFIG = "/etc/nix/nixpkgs-config.nix";
|
NIXPKGS_CONFIG = "/etc/nix/nixpkgs-config.nix";
|
||||||
NIX_PATH =
|
NIX_PATH =
|
||||||
[ "/nix/var/nix/profiles/per-user/root/channels/nixos"
|
[ "/nix/var/nix/profiles/per-user/root/channels/nixos"
|
||||||
|
@ -258,7 +258,6 @@ in
|
|||||||
path = [ pkgs.openssh pkgs.gawk ];
|
path = [ pkgs.openssh pkgs.gawk ];
|
||||||
|
|
||||||
environment.LD_LIBRARY_PATH = nssModulesPath;
|
environment.LD_LIBRARY_PATH = nssModulesPath;
|
||||||
environment.LOCALE_ARCHIVE = "/run/current-system/sw/lib/locale/locale-archive";
|
|
||||||
|
|
||||||
preStart =
|
preStart =
|
||||||
''
|
''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user