Skip to content
Discussion options

You must be logged in to vote

nh clean all is a superset of nix store --gc so its generally not recommended that you enable both. iirc the NH module in Nixpkgs will actually throw when you have both, though as long as you make sure they don't fire and lock rhe store simultaneouslt it is not destructive. It is also worth noting that nh clean aims to replace the gc operations, which is to say you shouldn't need to enable nix.gc while NH's clean service is enabled.

The clean service added by NH has its own Systemd service and timer invoking nh clean all, and does not follow any timers or argumenrs added by nix.gc.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@MoltenMonster
Comment options

@NotAShelf
Comment options

Answer selected by MoltenMonster
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants