···11+@document.meta
22+title: Impermanence on NixOS with ZFS and tmpfs
33+description: Guide for my impermanence setup
44+authors: [
55+ ladas552
66+]
77+categories: [
88+ Nix
99+]
1010+created: 2025-09-27T15:05:22+05:00
1111+updated: 2025-09-27T15:20:18
1212+draft: true
1313+layout: post
1414+version: 1.1.1
1515+@end
1616+1717+* Impermanence
1818+** What is Impermanence
1919+ It wipes your /root on reboot and your startup is a blank canvas, but you can persist mounts and bind mount directories from it in your normal root to save stuff like cache and tokens. So you wipe all the junk and save actually useful stuff.
2020+2121+ For example you can install full KDE Plasma session, run it, and if you get bored. Just disable it and no KDE junk left.
2222+*** Why use Impermanence
2323+ Makes system reproducable by disabling any imperative changes, and makes you think what your system actually has.
2424+*** Why did you set it up
2525+ I was bored. I don't find benefits of impermanence so crucial to compleatly overhoul how your system behavies and I don't trust myself to mantain it.
2626+2727+ But again, I was really bored in hospital and made this work.
2828+*** What's the meaning of writing this page?
2929+ It's not that hard to setup impermanence, but to requires reading a lot of stuff, and if you don't use ZFS or BTRFS even full reinstall for rearanging partitions. I have read several articles, watched videos, and stole code from many github repos.
3030+3131+ Plus most guides just go to the wipe stage right away, without saying how to persist, or how it practically works for the user to not loose their files. I will try to compete in these aspects.