Persistence of stateful data during NixOS garbage collection
NixOS maintains system immutability by storing configurations in the /nix/store . While system generations are atomic and easily reversible, stateful data—such as database directories, log files, or persistent user configurations—typically reside outside the immutable store to survive transitions. A challenge arises when using nix-collect-garbage to prune ol