mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-11 17:39:37 +08:00
This allows fish users to source the `hm-session-vars.fish` if they are not using the generated `config.fish` (which now sources the same file).
21 lines
467 B
Nix
21 lines
467 B
Nix
{ config, ... }:
|
|
|
|
{
|
|
config = {
|
|
home.sessionVariables = {
|
|
V1 = "v1";
|
|
V2 = "v2-${config.home.sessionVariables.V1}";
|
|
};
|
|
|
|
programs.fish.enable = true;
|
|
|
|
nmt.script = ''
|
|
assertFileExists home-path/etc/profile.d/hm-session-vars.fish
|
|
assertFileRegex home-path/etc/profile.d/hm-session-vars.fish \
|
|
"set -gx V1 'v1'"
|
|
assertFileRegex home-path/etc/profile.d/hm-session-vars.fish \
|
|
"set -gx V1 'v1'"
|
|
'';
|
|
};
|
|
}
|