mirror of
https://github.com/nix-community/home-manager
synced 2024-08-21 19:46:30 +02:00
20 lines
348 B
Nix
20 lines
348 B
Nix
|
{ config, lib, ... }:
|
||
|
|
||
|
with lib;
|
||
|
|
||
|
{
|
||
|
config = {
|
||
|
pam.sessionVariables = {
|
||
|
V1 = "v1";
|
||
|
V2 = "v2-${config.pam.sessionVariables.V1}";
|
||
|
};
|
||
|
|
||
|
nmt.script = ''
|
||
|
assertFileExists home-files/.pam_environment
|
||
|
assertFileContent \
|
||
|
home-files/.pam_environment \
|
||
|
${./session-variables-expected.txt}
|
||
|
'';
|
||
|
};
|
||
|
}
|