{ config, ... }:

{
  programs.zsh = {
    enable = true;

    sessionVariables = {
      PATH = "$HOME/bin:$PATH";
      V1 = "v1";
      V2 = "v2-${config.programs.zsh.sessionVariables.V1}";
      IS_EMPTY = "";
      IS_NULL = null;
      IS_FALSE = false;
      IS_TRUE = true;
    };
  };

  nmt.script = ''
    assertFileExists home-files/.zshenv
    assertFileContent $(normalizeStorePaths home-files/.zshenv) ${./session-variables.zshenv}
  '';
}
