diff --git a/home.nix b/home.nix index f59d1af..ff2848d 100644 --- a/home.nix +++ b/home.nix @@ -17,6 +17,7 @@ ./programs/helix.nix ./programs/go.nix ./programs/exa.nix + ./programs/rust.nix ]; programs.home-manager.enable = true; diff --git a/programs/rust.nix b/programs/rust.nix new file mode 100644 index 0000000..ec2a27a --- /dev/null +++ b/programs/rust.nix @@ -0,0 +1,8 @@ +{pkgs, ...}: let + lib = pkgs.lib; +in { + home.file.".cargo/config.toml".text = '' + [build] + rustc-wrapper = "${lib.getExe' pkgs.sccache "sccache"}" + ''; +} diff --git a/system.nix b/system.nix index 7bc0214..841f9d0 100644 --- a/system.nix +++ b/system.nix @@ -16,7 +16,7 @@ rustc cargo - ccache + sccache deno fnm bun