From 35eec99174d04a125bcb63c8586aed1f7983ef31 Mon Sep 17 00:00:00 2001 From: Filippo Berto Date: Sat, 25 Feb 2023 15:40:18 +0100 Subject: [PATCH] Add sccache to Rust dev environment --- hm_modules/development/rust.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hm_modules/development/rust.nix b/hm_modules/development/rust.nix index e1b91a4..9cf96ff 100644 --- a/hm_modules/development/rust.nix +++ b/hm_modules/development/rust.nix @@ -1,4 +1,8 @@ { pkgs, lib, config, ... }: { + home.file.".cargo/config".text = '' + [build] + rustc-wrapper = "${pkgs.sccache}/bin/sccache" + ''; home.packages = builtins.attrValues { inherit (pkgs)