c038ce07ee
Change-Id: Id102a25013d6a99f3db4f082a9feee87eadcd523 Reviewed-on: https://cl.tvl.fyi/c/depot/+/2250 Tested-by: BuildkiteCI Reviewed-by: glittershark <grfn@gws.fyi>
23 lines
359 B
Nix
23 lines
359 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
{
|
|
home.packages = with pkgs; [
|
|
rustup
|
|
rust-analyzer
|
|
cargo-edit
|
|
cargo-expand
|
|
sccache
|
|
];
|
|
|
|
programs.zsh.shellAliases = {
|
|
"cg" = "cargo";
|
|
"cb" = "cargo build";
|
|
"ct" = "cargo test";
|
|
};
|
|
|
|
home.file.".cargo/config".text = ''
|
|
[build]
|
|
rustc-wrapper = "${pkgs.sccache}/bin/sccache"
|
|
'';
|
|
}
|