From e166ef50e99cfd2a4451adc922d936ef116899c9 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Sun, 14 Jun 2026 00:33:18 +0200 Subject: modules/cargo: Move the shared-target to `.cache` That means it's no longer synchronized or backup-ed (without special exclude filters.) --- modules/by-name/ca/cargo/module.nix | 3 +-- modules/common/default.nix | 3 --- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/modules/by-name/ca/cargo/module.nix b/modules/by-name/ca/cargo/module.nix index d36a11e5..6a0675d3 100644 --- a/modules/by-name/ca/cargo/module.nix +++ b/modules/by-name/ca/cargo/module.nix @@ -27,8 +27,7 @@ in { cargoHome = "${config.home-manager.users.soispha.xdg.dataHome}/cargo"; settings = { - # {cargo-cache-home} means $CARGO_HOME - build.build-dir = "{cargo-cache-home}/shared-target/"; + build.build-dir = "${config.home-manager.users.soispha.xdg.cacheHome}/cargo/shared-target/"; }; }; }; diff --git a/modules/common/default.nix b/modules/common/default.nix index 680514a1..ea9f2ded 100644 --- a/modules/common/default.nix +++ b/modules/common/default.nix @@ -116,9 +116,6 @@ # Should not be synchronized "~/.local/share/unison" - # It's pointless to synchronize that - "~/.local/share/cargo/shared-target" - # These are just to big to be synchronized (# TODO: Work around that <2024-08-31> ) "~/.local/share/Steam" ] -- cgit v1.3.1