1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 19:46:05 +01:00
home-manager/tests/modules/programs/zsh/session-variables.nix
2025-10-01 09:50:11 -05:00

18 lines
366 B
Nix

{ config, ... }:
{
programs.zsh = {
enable = true;
sessionVariables = {
PATH = "$HOME/bin:$PATH";
V1 = "v1";
V2 = "v2-${config.programs.zsh.sessionVariables.V1}";
};
};
nmt.script = ''
assertFileExists home-files/.zshenv
assertFileContent $(normalizeStorePaths home-files/.zshenv) ${./session-variables.zshenv}
'';
}