mirror of
https://github.com/nix-community/home-manager
synced 2024-12-24 03:53:17 +00:00
23 lines
410 B
Nix
23 lines
410 B
Nix
|
{ config, lib, ... }:
|
||
|
|
||
|
with lib;
|
||
|
|
||
|
{
|
||
|
config = {
|
||
|
programs.zsh = {
|
||
|
enable = true;
|
||
|
|
||
|
sessionVariables = {
|
||
|
V1 = "v1";
|
||
|
V2 = "v2-${config.programs.zsh.sessionVariables.V1}";
|
||
|
};
|
||
|
};
|
||
|
|
||
|
nmt.script = ''
|
||
|
assertFileExists home-files/.zshrc
|
||
|
assertFileRegex home-files/.zshrc 'export V1="v1"'
|
||
|
assertFileRegex home-files/.zshrc 'export V2="v2-v1"'
|
||
|
'';
|
||
|
};
|
||
|
}
|