2019-03-22 12:47:49 +01:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
2021-01-23 15:56:38 +01:00
|
|
|
let
|
|
|
|
expectedConf = pkgs.substituteAll {
|
|
|
|
src = ./session-variables-expected.conf;
|
|
|
|
inherit (pkgs) glibcLocales;
|
|
|
|
};
|
|
|
|
in {
|
2019-03-22 12:47:49 +01:00
|
|
|
config = {
|
|
|
|
systemd.user.sessionVariables = {
|
|
|
|
V_int = 1;
|
|
|
|
V_str = "2";
|
|
|
|
};
|
|
|
|
|
|
|
|
nmt.script = ''
|
2020-04-10 00:25:21 +02:00
|
|
|
envFile=home-files/.config/environment.d/10-home-manager.conf
|
2019-03-22 12:47:49 +01:00
|
|
|
assertFileExists $envFile
|
2021-01-23 15:56:38 +01:00
|
|
|
assertFileContent $envFile ${expectedConf}
|
2019-03-22 12:47:49 +01:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|