2 ms·
With nixos you can boot to a tmpfs root, and every time you reboot your system is new and clean, and entirely defined by your nix file. I just mount my home as
by anotherhue 2y ago
With nixos you can boot to a tmpfs root, and every time you reboot your system is new and clean, and entirely defined by your nix file.
I just mount my home as a persistent disk and it's truly wonderful.
- XorNot 2y agoWouldn't it make more sense to use an encrypted volume you throw away the key for though? That's a lot of RAM for files you don't need in RAM all the time.
- pxc 2y agoYou can also use a ZFS or BTRFS snapshot that gets restored in the initramfs, discarding your changes. That's a common approach for people doing this on NixOS.
- yjftsjthsd-h 2y ago> That's a lot of RAM for files you don't need in RAM all the time. It shouldn't be; the idea is to make it so little to no data actually gets written to that tmpfs (everything is in /nix, /persist, or /home), and it's only even present and not read-only in case you've missed something.
- anotherhue 2y agoI track it and it's rarely over 100 or 200MB, which is nothing to a 32GB machine.