1
0
Fork 0
mirror of https://github.com/ryanccn/flake.git synced 2026-01-27 04:06:28 +01:00
flake/homes/aarch64-darwin/ryanccn@Ryans-Macbook-Pro/rust/default.nix
2024-02-10 12:06:15 +08:00

32 lines
568 B
Nix

{
pkgs,
config,
...
}: let
toml = pkgs.formats.toml {};
in {
home.file.".cargo/config.toml".source = toml.generate "config.toml" {
build.target-dir = "${config.home.homeDirectory}/.cargo/target";
};
home.packages = with pkgs; [
(fenix.combine (
with fenix;
with stable; [
cargo
rustc
rustfmt
clippy
rust-src
llvm-tools-preview
targets.wasm32-unknown-unknown.stable.rust-std
]
))
cargo-bloat
cargo-cache
cargo-deny
cargo-expand
cargo-watch
];
}