When running nixos, garbage collection can be automated by setting “nix.gc” attributes in “configuration.nix” and nix store optimisation can be automated using “nix.optimise.automatic = true;”.
For a package manager only installation on Linux, there also exists “auto-optimise-store” in nix.conf. But there appears to be no setting for automatic garbage collection. What is the recommended way to setup automatic garbage collection for a package manager only installation?
Ref:
https://nixos.wiki/wiki/Storage_optimization
https://nixos.org/manual/nix/stable/command-ref/conf-file#conf-auto-optimise-store