From 132974259ccd0fe21305b0b07d9873668f10a417 Mon Sep 17 00:00:00 2001 From: seth Date: Sun, 26 Feb 2023 12:19:24 -0500 Subject: add tpm2-device=auto to crypttab --- hosts/glados/hardware-configuration.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'hosts/glados/hardware-configuration.nix') diff --git a/hosts/glados/hardware-configuration.nix b/hosts/glados/hardware-configuration.nix index b96530a..74f9d71 100644 --- a/hosts/glados/hardware-configuration.nix +++ b/hosts/glados/hardware-configuration.nix @@ -23,7 +23,10 @@ options = ["subvol=root" "compress=zstd" "noatime"]; }; - boot.initrd.luks.devices."cryptroot".device = "/dev/disk/by-uuid/bbbc1f37-53f5-4776-a70e-f2779179de50"; + boot.initrd.luks.devices."cryptroot" = { + device = "/dev/disk/by-uuid/bbbc1f37-53f5-4776-a70e-f2779179de50"; + crypttabExtraOpts = ["tpm2-device=auto"]; + }; fileSystems."/var/log" = { device = "/dev/mapper/cryptroot"; -- cgit v1.2.3