Impermanence: Difference between revisions

imported>Klaymore
Note that the Impermanence module fails to build
imported>Klaymore
Add troubleshooting section for updating from 21.11
Line 28: Line 28:


Some files and folders should be persisted between reboots though (such as <code>/etc/nixos/</code>). This can be accomplished through bind mounts or by using the [https://github.com/nix-community/impermanence NixOS Impermanence module,] which will set up bind mounts and links as needed.
Some files and folders should be persisted between reboots though (such as <code>/etc/nixos/</code>). This can be accomplished through bind mounts or by using the [https://github.com/nix-community/impermanence NixOS Impermanence module,] which will set up bind mounts and links as needed.
{{Note|On NixOS 22.05 the Impermanence module fails to build.}}




Line 211: Line 208:
}
}
</syntaxhighlight>
</syntaxhighlight>
=== Troubleshooting ===
==== Updating from 21.11 to 22.05 or Unstable ====
If it says <code>builder for '/nix/store/file-name.service.drv' failed to produce output path for output 'out' at '/nix/store/file-name.service'</code> after updating your channel from 21.11, then it seems to be because that output path already exists in the Nix store. One possible solution is booting into a NixOS live USB, removing your nix store, and then running a <code>nixos-install</code>.