···1+@document.meta
2+title: Impermanence on NixOS with ZFS and tmpfs
3+description: Guide for my impermanence setup
4+authors: [
5+ ladas552
6+]
7+categories: [
8+ Nix
9+]
10+created: 2025-09-27T15:05:22+05:00
11+updated: 2025-09-27T15:20:18
12+draft: true
13+layout: post
14+version: 1.1.1
15+@end
16+17+* Impermanence
18+** What is Impermanence
19+ 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.
20+21+ For example you can install full KDE Plasma session, run it, and if you get bored. Just disable it and no KDE junk left.
22+*** Why use Impermanence
23+ Makes system reproducable by disabling any imperative changes, and makes you think what your system actually has.
24+*** Why did you set it up
25+ 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.
26+27+ But again, I was really bored in hospital and made this work.
28+*** What's the meaning of writing this page?
29+ 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.
30+31+ 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.