From ba19448f53988d6b27997c83b9d2d2cc5efaddca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Numbus?= Date: Fri, 2 Jan 2026 22:11:23 +0100 Subject: [PATCH] Try to get automatic disk unlocking --- templates/nix-config/disks/content.nix | 6 +++++- templates/nix-config/disks/parity.nix | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/templates/nix-config/disks/content.nix b/templates/nix-config/disks/content.nix index d227dc4..673af74 100644 --- a/templates/nix-config/disks/content.nix +++ b/templates/nix-config/disks/content.nix @@ -9,7 +9,11 @@ content = { type = "luks"; name = "crypted-content-${j}"; - settings.keyFile = "/etc/secrets/disks/content-disk-${j}"; + initrdUnlock = false; + settings = { + keyFile = "/etc/secrets/disks/content-disk-${j}"; + allowDiscards = true; + }; content = { type = "filesystem"; format = "xfs"; diff --git a/templates/nix-config/disks/parity.nix b/templates/nix-config/disks/parity.nix index 0167a5e..030ae99 100644 --- a/templates/nix-config/disks/parity.nix +++ b/templates/nix-config/disks/parity.nix @@ -9,7 +9,11 @@ content = { type = "luks"; name = "crypted-parity-${j}"; - settings.keyFile = "/etc/secrets/disks/parity-disk-${j}"; + initrdUnlock = false; + settings = { + keyFile = "/etc/secrets/disks/parity-disk-${j}"; + allowDiscards = true; + }; content = { type = "filesystem"; format = "xfs";