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:
parent
6f7074d21d
commit
e44faef21c
5 changed files with 54 additions and 50 deletions
|
|
@ -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
|
||||
''}
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue