config/homes/common/rust.nix
2024-09-29 16:42:01 +01:00

16 lines
300 B
Nix

{ config, pkgs, ... }:
{
home.packages = with pkgs; [
rustup
];
home = {
sessionVariables = {
CARGO_HOME = "${config.xdg.dataHome}/cargo";
RUSTUP_HOME = "${config.xdg.dataHome}/rustup";
};
sessionPath = [ "${config.home.sessionVariables.CARGO_HOME}/bin" ];
};
}