mirror of
https://github.com/ryanccn/flake.git
synced 2026-01-27 04:06:28 +01:00
32 lines
568 B
Nix
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
|
|
];
|
|
}
|