From fe0f98b3f014855a319b32d1286169ac150903f0 Mon Sep 17 00:00:00 2001 From: Ashhhleyyy Date: Fri, 22 Mar 2024 09:53:29 +0000 Subject: [PATCH] fix: fido2 disk encryption --- hosts/alex/configuration.nix | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/hosts/alex/configuration.nix b/hosts/alex/configuration.nix index 820b34b..4a7453d 100644 --- a/hosts/alex/configuration.nix +++ b/hosts/alex/configuration.nix @@ -10,10 +10,12 @@ ./hardware-config.nix ]; - boot.initrd.luks.devices.root = { - device = "/dev/disk/by-uuid/00f32b39-dfcb-4459-bf8e-aa68e2198466"; - preLVM = true; - allowDiscards = true; + boot.initrd.luks = { + devices.root = { + device = "/dev/disk/by-uuid/00f32b39-dfcb-4459-bf8e-aa68e2198466"; + preLVM = true; + allowDiscards = true; + }; }; networking.hostName = "alex"; @@ -33,6 +35,7 @@ security.pam.services = { kde.u2fAuth = true; sddm.u2fAuth = true; + doas.u2fAuth = true; }; services.xserver = {