Nixfiles/rustdev.nix
2022-08-14 14:52:54 +02:00

22 lines
368 B
Nix

{
config,
pkgs,
lib,
...
}: {
home.sessionVariables = {
RUSTC_WRAPPER = "${pkgs.sccache}/bin/sccache";
};
home.packages = with pkgs; [
pkgs.rust-bin.stable.latest.default
cargo-edit
];
home.file = {
".zfunc/_cargo".text = ''
#compdef cargo
source $(rustc --print sysroot)/share/zsh/site-functions/_cargo
'';
};
}