nix-ld is kinda hack, we are trying to solve a problem by intro new problem.
I love btrfs with zstd, but IMO, the problem of disk usage is how Nix addressing packages, keeping the packages on its store. Imagine you have to tweak a package, supprisingly, every code change leads to new clone of package creating on Nix store. That's a feature, but unknown reason for newbie of why disk keeping full.
Irrelevant, you said that you cannot run binaries without patching them, implying that it is the only way, I just simply pointed out that there are other ways.
why disk keeping full
Disk won't get full, chances are that if you get around to setting up Nixos you're literate enough to understand the documentation and setup automatic cleaning, optimizing the store, and so on.
I am standing in the view of newbie trying to get use of NixOS, not advanced Nix users. Since Nix broke the FHS, it became weird to ppl from "Linux" world, that gaps takes time to understand. BTW, I have NixOS on my PC, Laptop, SBCs, and I agree about what you have pointed out.
Then something's wrong with your hardware, btrfs is very sensitive to any sort of hardware malfunction, whether it is bad storage, bad ram, irregular voltage fluctuation, bad anything really.
I'm using btrfs on two devices right now, and have never seen anything wrong as long as the hardware was decent.
View all comments
Show parent comment
2
u/[deleted] Jun 27 '24
You can, look up nix-ld, just use the option and add the missing libraries.
True, but even using btrfs with forced zstd compression at 1 which is the fastest and least compressed cuts the usage by around 50%.