# Command shims The kernel adds selected wrappers to job `PATH` through [`albedo_shims.prepend`](../priv/python/albedo_shims.py). The wrappers affect command lookup through `PATH`. An absolute executable path bypasses them. The kernel writes them under `$ALBEDO_HOME/shims`, or `~/.albedo/shims` when `ALBEDO_HOME` is unset. ## Nix When `nix` is available, the `nix` wrapper invokes [albedo_nix.py](../priv/python/albedo_nix.py) with the kernel's Python. Its `rewritten` and `develop` paths handle supported flake commands and cached development shells. Any nonempty `ALBEDO_PLAIN_NIX` value bypasses that wrapper logic and invokes the next `nix` on `PATH`. See [albedo_shims.py](../priv/python/albedo_shims.py). ## Cargo When `mbx` is available, the `cargo` wrapper invokes it with cargo shim mode enabled. Any nonempty `ALBEDO_NO_MBX` value selects the next `cargo` on `PATH`, including `0`. The wrapper removes `SDKROOT` for the `mbx` process. In an Albedo Nix environment it also adjusts compiler variables and host flags as described in the wrapper. See `CARGO` in [albedo_shims.py](../priv/python/albedo_shims.py). ## Related pages - [All topics](README.md) - [Change guidance](contributing.md) - [The detached kernel](kernel.md) - [Direnv](direnv.md)