about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--users/grfn/system/home/modules/development/rust.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/users/grfn/system/home/modules/development/rust.nix b/users/grfn/system/home/modules/development/rust.nix
index 018b338bff..4ae5bc3bcc 100644
--- a/users/grfn/system/home/modules/development/rust.nix
+++ b/users/grfn/system/home/modules/development/rust.nix
@@ -26,5 +26,9 @@
   home.file.".cargo/config".text = ''
     [build]
     rustc-wrapper = "${pkgs.sccache}/bin/sccache"
+
+    [target.x86_64-unknown-linux-gnu]
+    linker = "clang"
+    rustflags = ["-C", "link-arg=-fuse-ld=${pkgs.mold}/bin/mold"]
   '';
 }