aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-06-14 00:33:18 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-06-14 00:33:18 +0200
commite166ef50e99cfd2a4451adc922d936ef116899c9 (patch)
treebac747e09f8c2686fa44b848bf0684938b8da4e9
parentpkgs/tails-iso/update.sh: Don't re-download when the version didn't change (diff)
downloadnixos-config-e166ef50e99cfd2a4451adc922d936ef116899c9.zip
modules/cargo: Move the shared-target to `.cache`
That means it's no longer synchronized or backup-ed (without special exclude filters.)
-rw-r--r--modules/by-name/ca/cargo/module.nix3
-rw-r--r--modules/common/default.nix3
2 files changed, 1 insertions, 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"
]