mirror of
https://github.com/ryanccn/flake.git
synced 2025-12-06 08:10:43 +01:00
29 lines
528 B
Nix
29 lines
528 B
Nix
{
|
|
pkgs,
|
|
lib,
|
|
config,
|
|
...
|
|
}:
|
|
let
|
|
toml = pkgs.formats.toml { };
|
|
in
|
|
{
|
|
home.file."${config.xdg.dataHome}/cargo/config.toml".source = toml.generate "config.toml" {
|
|
linker = "${lib.getExe pkgs.clang}";
|
|
rustflags = [
|
|
"-C"
|
|
"link-arg=-fuse-ld=${lib.getExe pkgs.mold}"
|
|
];
|
|
};
|
|
|
|
home.packages = with pkgs; [
|
|
(rust-bin.stable.latest.default.override { extensions = [ "llvm-tools-preview" ]; })
|
|
|
|
cargo-audit
|
|
cargo-bloat
|
|
cargo-cache
|
|
cargo-deny
|
|
cargo-expand
|
|
cargo-watch
|
|
];
|
|
}
|