1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 11:36:05 +01:00
home-manager/tests/modules/programs/zsh/session-variables.nix
Austin Horstman 2b03dc82bb lib/zsh: revert escapeShellArg in toZshValue
Causes variables to be generated with single ticks breaking shell
expansion.

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-09-28 14:44:14 -05:00

18 lines
348 B
Nix

{ config, lib, ... }:
{
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 home-files/.zshenv ${./session-variables.zshenv}
'';
}