diff --git a/programs/rust.nix b/programs/rust.nix index 19525ee..3152b8c 100644 --- a/programs/rust.nix +++ b/programs/rust.nix @@ -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"; + }; }