-
It is stated here https://nixos-and-flakes.thiscute.world/nixos-with-flakes/other-useful-tips#viewing-and-deleting-historical-data: Please explain this to me :-) Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
If you're not using home-manager, then you can safely ignore this comment and the command. The issue is that, But the home-manager's historical data will remains on your system, so you should run You need to run |
Beta Was this translation helpful? Give feedback.
If you're not using home-manager, then you can safely ignore this comment and the command.
The issue is that,
sudo nix-collect-garbage --delete-old
will only delete all the system-level's historical data, andsudo
means your're running the command underroot
.But the home-manager's historical data will remains on your system, so you should run
nix-collect-garbage --delete-old
withoutsudo
, to clear all the data for your current user.You need to run
nix-collect-garbage --delete-old
under all users with home-manager installed , that's why I saidper user
in the docs.But Generally speaking, you will only have home-manager under your personal account, so you don't need to run this command m…