Updating system Simply run this in the root directory of the flake nix flake update Cleaning garbage Run this nix store gc --debug && sudo nix store gc --debug