about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--users/glittershark/system/home/modules/development/rust.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/users/glittershark/system/home/modules/development/rust.nix b/users/glittershark/system/home/modules/development/rust.nix
index 29eda82dc1..ee10e9fcb4 100644
--- a/users/glittershark/system/home/modules/development/rust.nix
+++ b/users/glittershark/system/home/modules/development/rust.nix
@@ -6,6 +6,8 @@
     rustup
     rust-analyzer
     cargo-edit
+    cargo-expand
+    sccache
   ];
 
   programs.zsh.shellAliases = {
@@ -13,4 +15,9 @@
     "cb" = "cargo build";
     "ct" = "cargo test";
   };
+
+  home.file.".cargo/config".text = ''
+    [build]
+    rustc-wrapper = "${pkgs.sccache}/bin/sccache"
+  '';
 }