diff --git a/home/xdg.nix b/home/xdg.nix index fe26d46..5e5dee6 100644 --- a/home/xdg.nix +++ b/home/xdg.nix @@ -32,7 +32,12 @@ in { "${sessionVariables.GOPATH}/bin" "${sessionVariables.CARGO_HOME}/bin" ]; + packages = [pkgs.sccache]; }; + xdg.configFile."cargo/config".text = '' + [build] + rustc-wrapper = "sccache" + ''; # NOTE: workaround for gpgme on Darwin, since GUI apps aren't aware of $GNUPGHOME programs.gpg.homedir =