feat(cargo): use mold
This commit is contained in:
parent
7c40151154
commit
2475d151d6
2 changed files with 10 additions and 0 deletions
9
programs/cargo.nix
Normal file
9
programs/cargo.nix
Normal 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"]
|
||||
'';
|
||||
};
|
||||
}
|
|
@ -3,6 +3,7 @@ _: {
|
|||
./alacritty.nix
|
||||
./bash.nix
|
||||
./borg.nix
|
||||
./cargo.nix
|
||||
./chromium.nix
|
||||
./git.nix
|
||||
./gpg.nix
|
||||
|
|
Loading…
Reference in a new issue