Remove unused channel-cache directory

This commit is contained in:
Eelco Dolstra 2018-03-20 18:22:49 +01:00
parent e0c1597910
commit 03d8136b02
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -162,11 +162,6 @@ int main(int argc, char ** argv)
return handleExceptions(argv[0], [&]() { return handleExceptions(argv[0], [&]() {
initNix(); initNix();
// Turn on caching in nix-prefetch-url.
auto channelCache = settings.nixStateDir + "/channel-cache";
createDirs(channelCache);
setenv("NIX_DOWNLOAD_CACHE", channelCache.c_str(), 1);
// Figure out the name of the `.nix-channels' file to use // Figure out the name of the `.nix-channels' file to use
auto home = getHome(); auto home = getHome();
channelsList = home + "/.nix-channels"; channelsList = home + "/.nix-channels";