2019-10-08 22:46:27 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
2019-04-27 00:21:18 +02:00
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
config = {
|
|
|
|
programs.zsh = {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
sessionVariables = {
|
|
|
|
V1 = "v1";
|
|
|
|
V2 = "v2-${config.programs.zsh.sessionVariables.V1}";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2019-10-08 22:46:27 +02:00
|
|
|
nixpkgs.overlays = [
|
|
|
|
(self: super: {
|
|
|
|
zsh = pkgs.writeScriptBin "dummy-zsh" "";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2019-04-27 00:21:18 +02:00
|
|
|
nmt.script = ''
|
|
|
|
assertFileExists home-files/.zshrc
|
|
|
|
assertFileRegex home-files/.zshrc 'export V1="v1"'
|
|
|
|
assertFileRegex home-files/.zshrc 'export V2="v2-v1"'
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|