dots/users/price/conf/rust/default.nix
Price Hiller 89925ecbcb
Some checks failed
Check Formatting of Files / Check-Formatting (push) Has been cancelled
feat(hm/price): use rust nightly
2024-10-28 16:13:09 -05:00

28 lines
512 B
Nix

{
config,
pkgs,
...
}:
{
home = {
sessionVariables = {
CARGO_HOME = "${config.xdg.dataHome}/cargo";
RUSTUP_HOME = "${config.xdg.dataHome}/rustup";
RUST_SRC_PATH = "${pkgs.fenix.complete.rust-src}/lib/rustlib/src/rust/library";
};
packages = with pkgs; [
(pkgs.fenix.complete.withComponents [
"cargo"
"clippy"
"rust-src"
"rustc"
"rustfmt"
])
rust-analyzer-nightly
cargo-watch
cargo-nextest
];
};
}