2019-04-27 00:21:18 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
config = {
|
|
|
|
programs.bash = {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
sessionVariables = {
|
|
|
|
V1 = "v1";
|
|
|
|
V2 = "v2-${config.programs.bash.sessionVariables.V1}";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
nmt.script = ''
|
|
|
|
assertFileExists home-files/.profile
|
|
|
|
assertFileContent \
|
|
|
|
home-files/.profile \
|
2019-10-08 22:46:27 +02:00
|
|
|
${./session-variables-expected.txt}
|
2019-04-27 00:21:18 +02:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|