top | item 42006121

(no title)

jamesbfb | 1 year ago

Can relate. I’ve recently taken ownership of a new work laptop with Ubuntu (with “experimental” zfs) and using dedupe on my nix store has been an absolute blessing!

discuss

order

amarshall|1 year ago

Nix already has some builtin deduplication, see `man nix-store-optimise`. Nix’s own hardlinking optimization reduces disk usage of the store (for me) by 30–40%.

jamesbfb|1 year ago

Update. Turns out PyCharm does not play nice with a plethora of symlinks. :(

jamesbfb|1 year ago

Well, TIL. Being relatively new to nix, you’ve let me down another rabbit hole :)

rwarfield|1 year ago

Isn't it better to use `nix store optimise` for dedup of the nix store? The nix command has more knowledge of the structure of the nix store so should be able to do a better job with fewer resources. Also the store is immutable so you don't actually need reflinks - hard links are enough.

Filligree|1 year ago

It is, yeah, though you have to turn it on. I'm not actually sure why it's off by default.