User Tools

Site Tools


tech:cheatsheets:linux:nixos

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tech:cheatsheets:linux:nixos [2025/05/05 08:23] – [Infect system using nixos-infect] waldemartech:cheatsheets:linux:nixos [2025/05/07 04:55] (current) – [System is not lustrated] waldemar
Line 39: Line 39:
 </code> </code>
  
-Add directories and files you want to keep to ''/etc/NIXOS_LUSTRATE''This directories and files will not be moved into ''/old-root'' upon replacement.+Add directories and files you want to keep to ''/etc/NIXOS_LUSTRATE''These directories and files will not be moved into ''/old-root'' upon replacement.
  
 Also ensure that if your primary partition is an encrypted partition to add relevant configuration to your ''hardware-configuration.nix''. Also ensure that if your primary partition is an encrypted partition to add relevant configuration to your ''hardware-configuration.nix''.
Line 70: Line 70:
 # nixos-rebuild boot # nixos-rebuild boot
 </code> </code>
 +
 +===== Troubleshooting =====
 +==== System is not lustrated ====
 +For some reason a system is not lustrated (NOTE: system must boot via GRUB for lustrate to work aparently). If that happens a boot might fail due to systemd not finding ''default.target''.
 +If that happens a manual lustration might help (= move files manually from root into subfolder).
 +
 +Apparently systemd must also not be enabled in initrd for it work.
tech/cheatsheets/linux/nixos.1746433408.txt.gz · Last modified: by waldemar

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki