aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/home-manager/tests/modules/home-environment/session-variables.nix
blob: 9f326ebc1b843f9b5cd8142c9ceec941881f1742 (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 = {
    home.sessionVariables = {
      V1 = "v1";
      V2 = "v2-${config.home.sessionVariables.V1}";
    };

    nmt.script = ''
      assertFileExists home-path/etc/profile.d/hm-session-vars.sh
      assertFileContent \
        home-path/etc/profile.d/hm-session-vars.sh \
        ${./session-variables-expected.txt}
    '';
  };
}