1
0
Fork 0
mirror of https://github.com/ryanccn/flake.git synced 2025-12-06 16:10:45 +01:00

feat(rust): use toml generator

This commit is contained in:
Ryan Cao 2023-08-26 21:24:52 +08:00
parent a5d31746a9
commit a387054cfe
Signed by: ryanccn
SSH key fingerprint: SHA256:NtP/BlVhoQq4xU6BEcZeT8nIPvHntkJ3lIc2yB+F09E

View file

@ -1,8 +1,8 @@
{pkgs, ...}: let
inherit (pkgs) lib;
toml = pkgs.formats.toml {};
in {
home.file.".cargo/config.toml".text = ''
[build]
rustc-wrapper = "${lib.getExe' pkgs.sccache "sccache"}"
'';
home.file.".cargo/config.toml".source = toml.generate "config.toml" {
build.rustc-wrapper = lib.getExe' pkgs.sccache "sccache";
};
}