3 ms·
Does anyone have some tips on how I can partition an EFI laptop for NixOS with full disk encryption? I’m struggling to install NixOS on my Librem 14 - and have
by jeofken 5y ago
Does anyone have some tips on how I can partition an EFI laptop for NixOS with full disk encryption? I’m struggling to install NixOS on my Librem 14 - and have resolved to Ubuntu as it does all that for me.
- Ericson2314 5y agoUse LUKS, don't use LVM. I do that with ZFS for all the non-ancient stuff in github.com/Ericson2314/nixos-configuration
- jeofken 5y agoWhy avoid LVM? If you could point me to a practical instruction on how to get it running I’d be very thankful! I’m sure I’m missing something basic - as is usual when struggling with UNIXes…
- Ericson2314 5y agoThere is some LVM FUD I can't confirm, but really, it's just simpler. ZFS filesystems within the same "pool" are also just more flexible. The NixOS config part you can take from my repo. The command line part is the same as for any other linux. From memory: cryptsetup luksformat physical-part cryptsetup open physical-part arbitrary-name some-command-to-make-file-system ... /dev/mapper/arbitrary-name mount /dev/mapper/arbitrary-name
- jeppesen-io 5y agoI'd recommend LUKS. NixOS has a guide in the wiki but if you're looking for an example, see my nix readme. Might have a typo or two but it's 99 percent there https://github.com/NelsonJeppesen/nix-lifestyle#luks-encrypted-nixos https://github.com/NelsonJeppesen/nix-lifestyle#luks-encrypt... Unencrypted boot with LUKS root, nothing fancy https://nixos.wiki/wiki/Full_Disk_Encryption https://nixos.wiki/wiki/Full_Disk_Encryption