mirror of
https://github.com/nix-community/home-manager.git
synced 2025-03-10 02:36:54 +00:00
Instead of having to manually stub packages that should not be downloaded we instead automatically stub all packages (except a small list of whitelisted ones). Tests can re-introduce the real package by using the `realPkgs` module argument.
18 lines
355 B
Nix
18 lines
355 B
Nix
{ config, ... }:
|
|
|
|
{
|
|
programs.zsh = {
|
|
enable = true;
|
|
|
|
sessionVariables = {
|
|
V1 = "v1";
|
|
V2 = "v2-${config.programs.zsh.sessionVariables.V1}";
|
|
};
|
|
};
|
|
|
|
nmt.script = ''
|
|
assertFileExists home-files/.zshenv
|
|
assertFileRegex home-files/.zshenv 'export V1="v1"'
|
|
assertFileRegex home-files/.zshenv 'export V2="v2-v1"'
|
|
'';
|
|
}
|