From 79d926a810235faefe56f01e28ee63420012044f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= <motiejus@jakstys.lt>
Date: Wed, 5 Mar 2025 18:13:52 +0200
Subject: [PATCH] fwminex: add backup key

---
 hosts/fwminex/configuration.nix | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/hosts/fwminex/configuration.nix b/hosts/fwminex/configuration.nix
index 1f0ddd9..4167bce 100644
--- a/hosts/fwminex/configuration.nix
+++ b/hosts/fwminex/configuration.nix
@@ -56,6 +56,9 @@ in
         luksroot = {
           device = "${nvme}-part3";
           allowDiscards = true;
+          keyFileOffset = 9728;
+          keyFileSize = 512;
+          keyFile = "/dev/sda";
         };
       };
     };