From bbd5052b0f12dd8e4c6a0b21cdbdbf372bee65c7 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Thu, 12 Dec 2024 22:23:16 +0000 Subject: [PATCH] Revert "Remove encrypted disk configuration" This reverts commit d21fafc4efd2d1d3c673d813d854d8700cf995b3. --- nix/hosts/lemp11/configuration.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/nix/hosts/lemp11/configuration.nix b/nix/hosts/lemp11/configuration.nix index f0e9364..279d817 100644 --- a/nix/hosts/lemp11/configuration.nix +++ b/nix/hosts/lemp11/configuration.nix @@ -318,4 +318,16 @@ KERNEL=="hidraw*", SUBSYSTEM=="hidraw", MODE="0660", GROUP="users", TAG+="uaccess", TAG+="udev-acl" ''; }; + + fileSystems."/media" = { + device = "/dev/mapper/media"; + fsType = "ext4"; + options = [ "defaults" ]; + neededForBoot = false; + }; + + boot.initrd.luks.devices.secure_drive = { + device = "/dev/disk/by-uuid/debb07aa-4c3e-420c-852a-d4f3c417d27f"; + preLVM = true; + }; }