1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 19:46:05 +01:00

i18n: various fixes

This commit is contained in:
midchildan 2020-12-16 22:22:02 +09:00 committed by Robert Helgesson
parent 6f7074d21d
commit e44faef21c
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89
5 changed files with 54 additions and 50 deletions

View file

@ -1,13 +1,6 @@
{ config, lib, pkgs, ... }:
with lib;
let
expectedConf = pkgs.substituteAll {
src = ./session-variables-expected.conf;
inherit (pkgs) glibcLocales;
};
in {
{
config = {
systemd.user.sessionVariables = {
V_int = 1;
@ -17,7 +10,11 @@ in {
nmt.script = ''
envFile=home-files/.config/environment.d/10-home-manager.conf
assertFileExists $envFile
assertFileContent $envFile ${expectedConf}
assertFileContent $envFile ${pkgs.writeText "expected" ''
LOCALE_ARCHIVE_2_27=${pkgs.glibcLocales}/lib/locale/locale-archive
V_int=1
V_str=2
''}
'';
};
}