Fix nix-collect-garbage -d with the new profile location
Low-hanging fix for https://github.com/NixOS/nix/pull/5226#issuecomment-1454669399
This commit is contained in:
@@ -77,8 +77,7 @@ static int main_nix_collect_garbage(int argc, char * * argv)
|
||||
return true;
|
||||
});
|
||||
|
||||
auto profilesDir = settings.nixStateDir + "/profiles";
|
||||
if (removeOld) removeOldGenerations(profilesDir);
|
||||
if (removeOld) removeOldGenerations(profilesDir());
|
||||
|
||||
// Run the actual garbage collector.
|
||||
if (!dryRun) {
|
||||
|
||||
Reference in New Issue
Block a user