cfcd52ff70
GitOrigin-RevId: 70c5b268e10025c70823767f4fb49e240b40151d
24 lines
443 B
Nix
24 lines
443 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
config = {
|
|
programs.zsh = {
|
|
enable = true;
|
|
|
|
sessionVariables = {
|
|
V1 = "v1";
|
|
V2 = "v2-${config.programs.zsh.sessionVariables.V1}";
|
|
};
|
|
};
|
|
|
|
test.stubs.zsh = { };
|
|
|
|
nmt.script = ''
|
|
assertFileExists home-files/.zshrc
|
|
assertFileRegex home-files/.zshrc 'export V1="v1"'
|
|
assertFileRegex home-files/.zshrc 'export V2="v2-v1"'
|
|
'';
|
|
};
|
|
}
|