1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-24 02:39:48 +01:00
home-manager/tests/modules/programs
Jian Lin 2116fe6b50
zsh: move sessionVariables from .zshrc to .zshenv (#2708)
This patch moves both home.sessionVariables and
programs.zsh.sessionVariables from .zshrc to .zshenv. Additionally,
these two kinds of session variables will not be sourced more than
once to allow user-customized ones to take effect.

Before, session variables are in .zshrc, which causes non-interactive
shells to not be able to get those variables. For example, running a
command through SSH is in a non-interactive and non-login shell, which
suffers from this. With this patch, all kinds of shells can get
session variables.

The reason why these session variables are not moved to .zprofile is
that programs started by systemd user instances are not able to get
variables defined in that file. For example, GNOME
Terminal (gnome-terminal-server.service) is one of these programs and
doesn't get variables defined in .zprofile. As a result, the shells it
starts, which are interactive and non-login, do not get those
variables.

Fixes #2445

Related NixOS/nixpkgs#33219
Related NixOS/nixpkgs#45784

This file is not formatted before and is excluded by ./format, so I don't format it.
2022-02-17 10:20:56 +01:00
..
abook tests: add option test.stubs 2021-09-26 23:26:38 +02:00
alacritty tests: add option test.stubs 2021-09-26 23:26:38 +02:00
alot tests: add option test.stubs 2021-09-26 23:26:38 +02:00
aria2 tests: add option test.stubs 2021-09-26 23:26:38 +02:00
atuin atuin: add fish integration 2022-01-25 00:21:31 +01:00
autojump tests: add option test.stubs 2021-09-26 23:26:38 +02:00
autorandr tests: add option test.stubs 2021-09-26 23:26:38 +02:00
bash bash: remove unnecessary shebang and executable bit for dotfiles (#2599) 2022-01-01 10:06:55 -07:00
bat tests: add option test.stubs 2021-09-26 23:26:38 +02:00
bottom bottom: fix empty-settings test on darwin (#2603) 2022-01-01 20:28:45 -07:00
broot tests: add option test.stubs 2021-09-26 23:26:38 +02:00
browserpass Apply nixfmt on many files 2020-02-02 01:07:28 +01:00
dircolors dircolors: apply extraConfig after settings (#1890) 2021-03-31 22:01:02 +02:00
direnv direnv: add enableFlakes option for enableNixDirenvIntegration (#2089) 2021-06-15 12:11:26 -04:00
emacs tests: make enableBig an option 2022-01-02 10:36:52 +01:00
feh tests: add option test.stubs 2021-09-26 23:26:38 +02:00
firefox tests: make enableBig an option 2022-01-02 10:36:52 +01:00
fish tests: add option test.stubs 2021-09-26 23:26:38 +02:00
foot tests: add option test.stubs 2021-09-26 23:26:38 +02:00
getmail getmail: fix configuration mailboxes generation (#1719) 2021-03-01 17:58:18 -05:00
gh gh: remove git overlay in tests 2022-01-10 22:20:49 -05:00
git git: stub test dependency on msmtp 2021-10-30 20:36:18 +02:00
gnome-terminal tests: add option test.stubs 2021-09-26 23:26:38 +02:00
gpg gpg: allow specifying trust levels by name 2021-12-16 19:06:39 +01:00
helix helix: add module 2022-01-22 15:42:49 +01:00
hexchat hexchat: add module 2021-10-23 21:31:54 +02:00
himalaya tests: add option test.stubs 2021-09-26 23:26:38 +02:00
htop htop: fix order or header_columns setting (#2435) 2021-11-01 15:27:29 -04:00
i3status tests: add option test.stubs 2021-09-26 23:26:38 +02:00
i3status-rust tests: add option test.stubs 2021-09-26 23:26:38 +02:00
irssi irssi: fix test directory name 2021-10-30 20:40:49 +02:00
kakoune kakoune: clean up tests 2021-11-07 09:43:42 +01:00
kitty kitty: add option theme (#2710) 2022-02-08 11:54:24 -07:00
kodi kodi: add module 2022-01-26 23:56:25 +01:00
less less: store 'lesskey' under XDG_CONFIG_HOME 2021-12-08 11:23:56 +01:00
lf tests: add option test.stubs 2021-09-26 23:26:38 +02:00
lieer tests: add option test.stubs 2021-09-26 23:26:38 +02:00
man man: support building manual page index cache 2020-09-13 20:52:08 +02:00
mangohud tests: add option test.stubs 2021-09-26 23:26:38 +02:00
mbsync mbsync: stub test dependency 2021-10-30 20:44:21 +02:00
mpv mpv: temporarily disable tests 2021-11-25 22:29:47 +01:00
ncmpcpp tests: add option test.stubs 2021-09-26 23:26:38 +02:00
ncmpcpp-linux tests: add option test.stubs 2021-09-26 23:26:38 +02:00
ne tests: add option test.stubs 2021-09-26 23:26:38 +02:00
neomutt tests: add option test.stubs 2021-09-26 23:26:38 +02:00
neovim neovim: add extraLuaPackages to neovim, fixes #1964. (#2617) 2022-02-16 16:38:10 +01:00
newsboat tests: add option test.stubs 2021-09-26 23:26:38 +02:00
nix-index tests: add option test.stubs 2021-09-26 23:26:38 +02:00
nnn nnn: init (#2368) 2021-10-05 19:14:52 -04:00
nushell tests: add option test.stubs 2021-09-26 23:26:38 +02:00
pandoc pandoc: add new module 2022-01-22 21:16:50 +01:00
pet pet: fix settings format issue 2021-11-17 23:42:21 +01:00
powerline-go powerline-go: add support for -modules-right 2021-12-03 17:58:03 +01:00
qutebrowser tests: add option test.stubs 2021-09-26 23:26:38 +02:00
rbw tests: add option test.stubs 2021-09-26 23:26:38 +02:00
readline readline: fix example 2020-02-02 01:20:05 +01:00
rofi rofi: allow extending themes (#2571) 2022-01-09 17:15:24 -05:00
rofi-pass tests: add option test.stubs 2021-09-26 23:26:38 +02:00
sagemath sagemath: add module 2022-01-11 14:38:02 +01:00
sbt sbt: trim output of password command 2022-01-29 00:14:05 +01:00
scmpuff tests: add option test.stubs 2021-09-26 23:26:38 +02:00
sm64ex tests: add option test.stubs 2021-09-26 23:26:38 +02:00
ssh ssh: add includes option (#2453) 2021-11-16 11:51:10 -07:00
starship tests: add option test.stubs 2021-09-26 23:26:38 +02:00
taskwarrior taskwarrior: change config file location and use relative theme paths (#2455) 2021-11-23 21:33:03 -05:00
terminator tests: add option test.stubs 2021-09-26 23:26:38 +02:00
texlive texlive: remove upstream dependency in tests 2020-06-06 16:43:17 +02:00
tmux programs.tmux: use xdg config path (#1928) 2021-04-23 09:25:13 +02:00
topgrade tests: add option test.stubs 2021-09-26 23:26:38 +02:00
vscode vscode: add args option to keybindings 2021-02-05 22:38:37 +01:00
watson watson: add module 2022-01-22 16:12:34 +01:00
waybar waybar: configurable systemd WantedBy target (#2524) 2021-12-23 17:00:31 -05:00
xmobar tests: add option test.stubs 2021-09-26 23:26:38 +02:00
zplug programs.zsh.zplug: add zplugHome option 2021-11-02 08:49:47 +01:00
zsh zsh: move sessionVariables from .zshrc to .zshenv (#2708) 2022-02-17 10:20:56 +01:00