mirror of
https://github.com/traxys/Nixfiles.git
synced 2026-02-13 19:00:19 +01:00
24 lines
427 B
Nix
24 lines
427 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
|
|
if command -v rustc >/dev/null 2>&1; then
|
|
source "$(rustc --print sysroot)"/share/zsh/site-functions/_cargo
|
|
fi
|
|
'';
|
|
};
|
|
}
|