2 ms·
>"grahamc’s “Erase your darlings” blog post is an amazing example of what a snapshotting filesystems (zfs) combined with an immutable, infrastructue-as-code OS
by peter_d_sherman 5y ago
>"grahamc’s “Erase your darlings” blog post is an amazing example of what a
snapshotting filesystems (zfs) combined with an immutable, infrastructue-as-code OS (NixOS) can achieve.
To summarize the post, grahamc demonstrates how to erase the root partition at boot while opting in to state by getting NixOS to symlink stuff to a dedicated partition.
This restores the machine to a clean state on every boot, preserving the “new computer smell”.
I believe the main selling point of this concept of opt-in state is that it makes it dead simple to keep track of ephemeral machine state (everything not explicitly specified by your NixOS configuration) and enforces elimination of Configuration Drift. While the benefits of this are clear for servers, this also works pretty well with workstations and laptops, where you gradually accumulate junk in /etc and /var which you never can be completely confident in deleting.1"
Related:
https://dzone.com/articles/configuration-drift https://dzone.com/articles/configuration-drift
https://grahamc.com/blog/erase-your-darlings https://grahamc.com/blog/erase-your-darlings
https://news.ycombinator.com/item?id=22856199 https://news.ycombinator.com/item?id=22856199