mirror of
https://github.com/nix-community/home-manager
synced 2024-11-23 13:13:26 +00:00
25 lines
512 B
Nix
25 lines
512 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
config = {
|
|
programs.zsh = {
|
|
enable = true;
|
|
|
|
sessionVariables = {
|
|
V1 = "v1";
|
|
V2 = "v2-${config.programs.zsh.sessionVariables.V1}";
|
|
};
|
|
};
|
|
|
|
nixpkgs.overlays =
|
|
[ (self: super: { zsh = pkgs.writeScriptBin "dummy-zsh" ""; }) ];
|
|
|
|
nmt.script = ''
|
|
assertFileExists home-files/.zshrc
|
|
assertFileRegex home-files/.zshrc 'export V1="v1"'
|
|
assertFileRegex home-files/.zshrc 'export V2="v2-v1"'
|
|
'';
|
|
};
|
|
}
|