diff --git a/modules/gentoo/2020.lua.core b/modules/gentoo/2020.lua.core index aa5d063..21e7cda 100644 --- a/modules/gentoo/2020.lua.core +++ b/modules/gentoo/2020.lua.core @@ -61,6 +61,9 @@ else setenv("PIP_CONFIG_FILE", "/cvmfs/soft.computecanada.ca/config/python/pip-gentoo.conf") end setenv("MII_INDEX_FILE", "/cvmfs/soft.computecanada.ca/custom/mii/data/" .. arch .. "_" .. vendor_id) +if os.getenv("RSNT_ENABLE_LMOD_CACHE") == "yes" then + append_path("LMOD_RC", "/cvmfs/soft.computecanada.ca/config/lmod/lmodrc/cache_" .. arch .. "_" .. vendor_id .. ".lua") +end -- also make easybuild and easybuild-generated modules accessible prepend_path("PATH", "/cvmfs/soft.computecanada.ca/easybuild/bin") diff --git a/modules/nixpkgs/16.09.lua.core b/modules/nixpkgs/16.09.lua.core index b6daf9a..70acfa0 100644 --- a/modules/nixpkgs/16.09.lua.core +++ b/modules/nixpkgs/16.09.lua.core @@ -70,6 +70,9 @@ else setenv("PIP_CONFIG_FILE", "/cvmfs/soft.computecanada.ca/config/python/pip.conf") end setenv("MII_INDEX_FILE", "/cvmfs/soft.computecanada.ca/custom/mii/data/" .. arch .. "_" .. cpu_vendor_id) +if os.getenv("RSNT_ENABLE_LMOD_CACHE") == "yes" then + append_path("LMOD_RC", "/cvmfs/soft.computecanada.ca/config/lmod/lmodrc/cache_" .. arch .. "_" .. cpu_vendor_id .. ".lua") +end -- also make easybuild and easybuild-generated modules accessible prepend_path("PATH", "/cvmfs/soft.computecanada.ca/easybuild/bin")