Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nix-gc: add automatic garbage collector #10

Merged
merged 4 commits into from
Feb 27, 2024
Merged

Conversation

shivaraj-bh
Copy link
Member

No description provided.

Copy link
Member

@srid srid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good feature. Though it could surprise the user when down the line (in a week, it seems) their devShell starts downloading things again ... wait, that's not an issue if one uses nix-direnv:

prevents garbage collection of build dependencies by symlinking the resulting shell derivation in the user's gcroots (Life is too short to lose your project's build cache if you are on a flight with no internet connection)

So perhaps a note should be added somewhere about this. I'd suggest README.

home/default.nix Outdated Show resolved Hide resolved
@shivaraj-bh
Copy link
Member Author

@srid updated the readme and also included an example to change freq.

@srid srid merged commit 2860566 into juspay:main Feb 27, 2024
1 check passed
@shivaraj-bh shivaraj-bh deleted the nix-gc branch February 27, 2024 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants