Nixfiles/rustdev.nix

23 lines
358 B
Nix
Raw Normal View History

2022-02-06 21:21:40 +01:00
{
2022-05-01 10:32:31 +02:00
config,
pkgs,
lib,
...
}: {
2022-02-06 21:21:40 +01:00
home.sessionVariables = {
RUSTC_WRAPPER = "${pkgs.sccache}/bin/sccache";
};
home.packages = with pkgs; [
2022-07-17 11:46:23 +02:00
pkgs.rust-bin.stable.latest.default
2022-02-06 21:38:03 +01:00
cargo-edit
2022-02-06 21:21:40 +01:00
];
2022-07-17 11:46:23 +02:00
home.file = {
".zfunc/_cargo".text = ''
#compdef cargo
source $(rustc --print sysroot)/share/zsh/site-functions/_cargo
'';
};
2022-02-06 21:21:40 +01:00
}