From 248afaa7ba76b1fe515afd8a51979fa9f8239128 Mon Sep 17 00:00:00 2001 From: Alexander Bantyev Date: Wed, 11 Aug 2021 14:50:37 +0300 Subject: [PATCH] Cache cargo --- profiles/workspace/misc.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/profiles/workspace/misc.nix b/profiles/workspace/misc.nix index 588cc3d..d58a31e 100644 --- a/profiles/workspace/misc.nix +++ b/profiles/workspace/misc.nix @@ -4,6 +4,9 @@ config.home-manager.users.balsoft.home.sessionVariables // rec { LESS = "MR"; LESSHISTFILE = "~/.local/share/lesshist"; + + CARGO_HOME = "${config.home-manager.users.balsoft.xdg.dataHome}/cargo"; + SYSTEMD_LESS = LESS; }; @@ -15,7 +18,7 @@ home.stateVersion = "20.09"; }; - persist.cache.directories = [ "/home/balsoft/.cache" "/var/cache" ]; + persist.cache.directories = [ "/home/balsoft/.cache" "/home/balsoft/.local/share/cargo" "/var/cache" ]; persist.state.directories = [ "/var/lib/nixos" "/var/lib/systemd" ];