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

feat: adopt XDG base directories

This commit is contained in:
Ryan Cao 2024-02-16 00:01:34 +08:00
parent b1984a512c
commit c6c59dd552
Signed by: ryanccn
SSH key fingerprint: SHA256:NtP/BlVhoQq4xU6BEcZeT8nIPvHntkJ3lIc2yB+F09E
7 changed files with 40 additions and 24 deletions

View file

@ -1,11 +1,12 @@
{
pkgs,
lib,
config,
...
}: let
toml = pkgs.formats.toml {};
in {
home.file.".cargo/config.toml".source = toml.generate "config.toml" {
home.file."${config.xdg.dataHome}/cargo/config.toml".source = toml.generate "config.toml" {
build.rustc-wrapper = "${lib.getExe' pkgs.sccache "sccache"}";
};