Skip to content

Commit fc05b0c

Browse files
feat(rustup): add cargo bin directory to PATH
CARGO_HOME is set to ~/.local/share/cargo via XDG compliance, but the corresponding bin directory was missing from PATH. This caused cargo-installed binaries (e.g. ff) to not be found.
1 parent bdb2061 commit fc05b0c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

programs/rustup.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@
1515
RUSTUP_HOME = "${config.xdg.dataHome}/rustup";
1616
};
1717

18+
# ── PATH ────────────────────────────────────────────────────────────────────
19+
# Ensure cargo-installed binaries are discoverable
20+
home.sessionPath = [
21+
"${config.xdg.dataHome}/cargo/bin"
22+
];
23+
1824
# ── Packages ────────────────────────────────────────────────────────────────
1925
home.packages = with pkgs; [
2026
rustup # Rust toolchain installer

0 commit comments

Comments
 (0)