1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-24 22:11:15 +02:00

Merge pull request #7126 from squalus/fsync-store-paths

Add fsync-store-paths option
This commit is contained in:
Eelco Dolstra 2024-08-22 17:45:11 +02:00 committed by GitHub
commit 1facc3e35e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 173 additions and 13 deletions

View file

@ -0,0 +1,9 @@
---
synopsis: Add setting `fsync-store-paths`
issues: [1218]
prs: [7126]
---
Nix now has a setting `fsync-store-paths` that ensures that new store paths are durably written to disk before they are registered as "valid" in Nix's database. This can prevent Nix store corruption if the system crashes or there is a power loss. This setting defaults to `false`.
Author: [**@squalus**](https://github.com/squalus)