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: don't allow using auto-optimise-store as it can corrupt the store #1152

Merged
merged 1 commit into from
Nov 8, 2024

Conversation

Enzime
Copy link
Collaborator

@Enzime Enzime commented Nov 8, 2024

Upstream issue at NixOS/nix#7273

Should be fixed by https://gerrit.lix.systems/c/lix/+/2100

Tested the version check with Nix, Lix 2.91.0 (pkgs.lixVersions.latest), Lix 2.92.0-devpre20241106_1ecfff9 (github:lix-project/lix/1ecfff9c37f64871661d615e407ec3571489eff7, doesn't include the fix) and Lix 2.92.0-devpre20241107_72cce7b (github:lix-project/lix) which does include the change

Closes #484

modules/nix/default.nix Outdated Show resolved Hide resolved
Comment on lines 532 to 533
NOTE: This is known to cause Nix Store corruption and using
{option}`{nix.gc.automatic} instead is recommended.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should probably be a ::: {.warning}, but also if this is getting fixed then we might not need to warn explicitly against it in the description – the assertion should do a good enough job by itself.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Removed, also ::: {.warning} didn't do anything when I tested it (neither in the manpages or the HTML manual)

@Enzime Enzime force-pushed the push-rvwwkktwykyt branch 2 times, most recently from 9022f32 to bfc9d8d Compare November 8, 2024 01:35
@khaneliman
Copy link
Contributor

Thanks for adding this... it made me realize I had my options backwards on my mac...

modules/nix/default.nix Outdated Show resolved Hide resolved
modules/nix/default.nix Outdated Show resolved Hide resolved
Copy link
Contributor

@khaneliman khaneliman left a comment

Choose a reason for hiding this comment

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

LGTM, thanks again!

@Enzime Enzime merged commit 2fbf4a8 into LnL7:master Nov 8, 2024
6 checks passed
@Enzime Enzime deleted the push-rvwwkktwykyt branch November 8, 2024 02:17
WilliamHsieh added a commit to WilliamHsieh/dotfiles that referenced this pull request Dec 4, 2024
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.

Nix fails to create some temporary symlinks
3 participants