From 3557f2840857b24ef6a64dcf6756c3b9b4c05a3f Mon Sep 17 00:00:00 2001 From: tristan Date: Tue, 18 Apr 2023 12:23:11 +0100 Subject: [PATCH] encrytion key --- system/zenix/hardware.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/system/zenix/hardware.nix b/system/zenix/hardware.nix index c0b0758..8588c32 100644 --- a/system/zenix/hardware.nix +++ b/system/zenix/hardware.nix @@ -19,7 +19,11 @@ options = [ "subvol=@" "compress=zstd" "autodefrag" ]; }; - boot.initrd.luks.devices."cryptroot".device = "/dev/disk/by-uuid/cc0617df-8cbf-4618-abbc-df64c96de151"; + boot.initrd.luks.devices."cryptroot" = { + device = "/dev/disk/by-uuid/cc0617df-8cbf-4618-abbc-df64c96de151"; + keyFileSize = 4096; + keyFile = "/dev/disk/by-id/usb-Generic_Flash_Disk_BCC97785-0:0"; + }; fileSystems."/home" = { device = "/dev/disk/by-uuid/2dad5ed6-44cc-4d9d-9392-32afaa7b3909";