mirror of
https://github.com/ryanccn/flake.git
synced 2025-12-06 08:10:43 +01:00
25 lines
501 B
Nix
25 lines
501 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-bloat
|
|
cargo-cache
|
|
cargo-deny
|
|
cargo-expand
|
|
cargo-watch
|
|
];
|
|
}
|