Hi folks,
So I currently have a 512GB SSD in my laptop which is kinda getting annoying given that NixOS installations can get quite large. I’m thinking of buying a 2TB ssd for my laptop and migrating my system over and am wondering if I can do so without reinstalling NixOS.
I installed NixOS using the installer and opted for an encrypted drive.
So I believe I should be able to create 3 partitions on the new drive:
- p1: boot - exactly the same
- p2: root - Taking up all the new space
- p3: swap - exactly the same
create a new luks partition for p2 and p3, unlock the old luks partitions and the new ones and transfer the data over, expand the ext4 filesystem and change my boot.initrd.luks.devices
config (i guess before migrating the boot partition).
I’m wondering if anybody has had experience doing this or if there is something that I’m missing.
Thank you!