aboutsummaryrefslogtreecommitdiff
path: root/home/programs/rust.nix
blob: 6ee309457831befada18e691a31646cadbef632e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{ config, pkgs, ... }:
{
  home.packages = with pkgs; [
    rustup
  ];

  home.sessionVariables = {
    RUSTUP_HOME = "${config.xdg.dataHome}/rustup";
    CARGO_HOME = "${config.xdg.dataHome}/cargo";
  };

  home.sessionPath = [
    "${config.xdg.dataHome}/cargo/bin"
  ];
}