diff options
| author | 2026-05-19 15:24:46 +0100 | |
|---|---|---|
| committer | 2026-05-19 15:24:46 +0100 | |
| commit | e69aaa8c2762b6c801cedecefcf1f301307df292 (patch) | |
| tree | c0c4949a9a37a2314c17eafbec72c557005b5cb8 /remote-dev | |
| parent | 43a6778dc0b386f32290576478d62c60034ad16f (diff) | |
| download | dotfiles-e69aaa8c2762b6c801cedecefcf1f301307df292.tar.gz dotfiles-e69aaa8c2762b6c801cedecefcf1f301307df292.tar.bz2 dotfiles-e69aaa8c2762b6c801cedecefcf1f301307df292.zip | |
fix(remote-dev): source hm-session-vars from .zshenv
home.sessionVariables get written to hm-session-vars.sh, which HM only
auto-sources when programs.bash/zsh.enable = true (it injects a snippet
into the rc file) or via ~/.profile (which zsh login shells don't
read). We use a ZDOTDIR redirect and no HM-managed shells, so
PODMAN_IGNORE_CGROUPSV1_WARNING (and any future session var) was never
reaching the shell.
Source it explicitly from the generated ~/.zshenv before redirecting
to ZDOTDIR.
Diffstat (limited to 'remote-dev')
| -rw-r--r-- | remote-dev/home.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/remote-dev/home.nix b/remote-dev/home.nix index 4d5a476..35fccaf 100644 --- a/remote-dev/home.nix +++ b/remote-dev/home.nix @@ -195,7 +195,13 @@ in ''; # ZDOTDIR redirect so login shells find ~/.config/zsh/.zprofile etc. + # Also source HM's session-vars (PODMAN_IGNORE_CGROUPSV1_WARNING, etc.) — + # HM normally drops these into ~/.profile, but zsh login shells don't read + # .profile, and we don't use programs.zsh.enable. home.file.".zshenv".text = '' + if [ -r "$HOME/.nix-profile/etc/profile.d/hm-session-vars.sh" ]; then + . "$HOME/.nix-profile/etc/profile.d/hm-session-vars.sh" + fi export ZDOTDIR="$HOME/.config/zsh" [[ -r "$ZDOTDIR/.zshenv" ]] && source "$ZDOTDIR/.zshenv" ''; |
