I enumerate how I setup my NixOS impermanence setup on a VM using LUKS disk encryption. It uses ext4 for both the persistent and ephemeral storage and erases the ephemeral storage on reboot.
slog
i got tired of css, all the budget went into the links
Installing NixOS impermanence with LUKS