The nix-gc service runs automatically at a specified frequency. It is managed via launchd on macOS and systemd on Linux.