My Blog, build with Norgolith blog.ladas552.me
blog

impermanence draft

Ladas552 ad650028 bdf8b5e5

+35 -4
+31
content/posts/Impermanence.norg
··· 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.
+4 -4
flake.lock
··· 20 20 }, 21 21 "nixpkgs": { 22 22 "locked": { 23 - "lastModified": 1757419078, 24 - "narHash": "sha256-cUwlZ3aSduI9dw5AbF3PzktsCztcvt+0GBClTeGaksI=", 25 - "rev": "b599843bad24621dcaa5ab60dac98f9b0eb1cabe", 23 + "lastModified": 1758813675, 24 + "narHash": "sha256-cTjOAzgVQrjBvZLAdnY4+AhWdiAzdvEQ69/ZcxNo3Lo=", 25 + "rev": "e643668fd71b949c53f8626614b21ff71a07379d", 26 26 "type": "tarball", 27 - "url": "https://releases.nixos.org/nixos/unstable/nixos-25.11pre858212.b599843bad24/nixexprs.tar.xz" 27 + "url": "https://releases.nixos.org/nixos/unstable/nixos-25.11pre866707.e643668fd71b/nixexprs.tar.xz" 28 28 }, 29 29 "original": { 30 30 "type": "tarball",