aboutsummaryrefslogtreecommitdiff
path: root/home-manager/tests/modules/misc/pam/session-variables.nix
blob: 4fbec4163b577d8d0d56879d8a790346fc8d15de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{ 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}
    '';
  };
}