summaryrefslogtreecommitdiff
path: root/user/spack/default-config-unprivileged.patch
blob: 802f98383ef45c143fc6b7873020a82294e1cb7c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
diff --git a/etc/spack/defaults/config.yaml b/etc/spack/defaults/config.yaml
index b4d81f69da..36ea2b0f23 100644
--- a/etc/spack/defaults/config.yaml
+++ b/etc/spack/defaults/config.yaml
@@ -17,7 +17,7 @@ config:
   # This is the path to the root of the Spack install tree.
   # You can use $spack here to refer to the root of the spack instance.
   install_tree:
-    root: $spack/opt/spack
+    root: $user_cache_path
     projections:
       all: "{architecture}/{compiler.name}-{compiler.version}/{name}-{version}-{hash}"
     # install_tree can include an optional padded length (int or boolean)
@@ -78,7 +78,7 @@ config:
 
   # Cache directory for already downloaded source tarballs and archived
   # repositories. This can be purged with `spack clean --downloads`.
-  source_cache: $spack/var/spack/cache
+  source_cache: $user_cache_path/cache
 
 
   ## Directory where spack managed environments are created and stored