Spack configuration is layered across system, site, and user scopes.
config.yaml
packages.yaml
compilers.yaml
mirrors.yaml
modules.yaml
These are typically under etc/spack/ and user-level Spack config directories.
- Default install tree and build stage paths
- External packages and compiler definitions
- Mirror/buildcache endpoints
- Module generation policy for Lmod/Environment Modules
spack config get config
spack config get packages
spack config get mirrors
spack spec zlib
- Keep site configs in version control.
- Use environments and lockfiles for reproducible stacks.
- Pin release branches in multi-user deployments.