mirror of
https://github.com/ryanccn/flake.git
synced 2026-01-26 19:56:29 +01:00
feat(rust): use universal target dir
This commit is contained in:
parent
2769f06537
commit
3fc6390a87
1 changed files with 6 additions and 3 deletions
|
|
@ -1,8 +1,11 @@
|
||||||
{pkgs, ...}: let
|
{
|
||||||
# inherit (pkgs) lib;
|
pkgs,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
toml = pkgs.formats.toml {};
|
toml = pkgs.formats.toml {};
|
||||||
in {
|
in {
|
||||||
home.file.".cargo/config.toml".source = toml.generate "config.toml" {
|
home.file.".cargo/config.toml".source = toml.generate "config.toml" {
|
||||||
# build.rustc-wrapper = lib.getExe' pkgs.sccache "sccache";
|
build.target-dir = "${config.home.homeDirectory}/.cargo/target";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue