targets/genericLinux: make locales work

This commit is contained in:
Guillaume Girol 2020-12-09 13:18:07 +01:00 committed by Robert Helgesson
parent 4f0b0d78af
commit 6739d8bb50
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89
2 changed files with 7 additions and 1 deletions

View file

@ -32,7 +32,10 @@ in {
dataDirs = concatStringsSep ":"
(map (profile: "${profile}/share") profiles
++ config.targets.genericLinux.extraXdgDataDirs);
in { XDG_DATA_DIRS = "${dataDirs}\${XDG_DATA_DIRS:+:}$XDG_DATA_DIRS"; };
in {
XDG_DATA_DIRS = "${dataDirs}\${XDG_DATA_DIRS:+:}$XDG_DATA_DIRS";
LOCALE_ARCHIVE_2_27 = "${pkgs.glibcLocales}/lib/locale/locale-archive";
};
home.sessionVariablesExtra = ''
. "${pkgs.nix}/etc/profile.d/nix.sh"

View file

@ -17,6 +17,9 @@ with lib;
assertFileContains \
home-path/etc/profile.d/hm-session-vars.sh \
'. "${pkgs.nix}/etc/profile.d/nix.sh"'
assertFileContains \
home-path/etc/profile.d/hm-session-vars.sh \
'export LOCALE_ARCHIVE_2_27="${pkgs.glibcLocales}/lib/locale/locale-archive"'
'';
};
}