feat(cargo): use mold

This commit is contained in:
buffet 2022-10-18 21:16:25 +00:00
parent 7c40151154
commit 2475d151d6
2 changed files with 10 additions and 0 deletions

9
programs/cargo.nix Normal file
View file

@ -0,0 +1,9 @@
{pkgs, ...}: {
home-manager.users.buffet = {
home.file.".cargo/config.toml".text = ''
[target.x86_64-unknown-linux-gnu]
linker = "${pkgs.clang}/bin/clang"
rustflags = ["-C", "link-arg=-fuse-ld=${pkgs.mold}/bin/mold"]
'';
};
}

View file

@ -3,6 +3,7 @@ _: {
./alacritty.nix
./bash.nix
./borg.nix
./cargo.nix
./chromium.nix
./git.nix
./gpg.nix