From 283dbe65309e0b9364e3397c98490f7447791809 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charlotte=20=F0=9F=A6=9D=20Delenk?= Date: Fri, 14 Jan 2022 10:50:02 +0100 Subject: [PATCH] fix cryptsetup --- config/nixos-8gb-fsn1-1.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/config/nixos-8gb-fsn1-1.nix b/config/nixos-8gb-fsn1-1.nix index c31780e3..2cafc97b 100644 --- a/config/nixos-8gb-fsn1-1.nix +++ b/config/nixos-8gb-fsn1-1.nix @@ -15,6 +15,12 @@ boot.kernelParams = ["zfs_force=1"]; # Remove after next boot boot.loader.grub.devices = [ "/dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_drive-scsi0-0-0-0" ]; boot.loader.timeout = 5; + boot.initrd.luks.enable = true; + boot.initrd.luks.devices = { + disk0 = { + device = "/dev/disk/by-partuuid/29ccd4c9-5ef5-a146-8e42-9244f712baca"; + }; + }; fileSystems."/" = { device = "tank/nixos";