From e69aaa8c2762b6c801cedecefcf1f301307df292 Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Tue, 19 May 2026 15:24:46 +0100 Subject: 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. --- remote-dev/home.nix | 6 ++++++ 1 file changed, 6 insertions(+) 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" ''; -- cgit v1.3.1