From 9b7b7254d0ece7a6b22e0af9ca8643f7793f8ffa Mon Sep 17 00:00:00 2001 From: Dave Gallant Date: Sat, 8 May 2021 17:39:10 -0400 Subject: [PATCH] Add additional LUKS encrypted disk for storage --- machines/hephaestus/hardware.nix | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/machines/hephaestus/hardware.nix b/machines/hephaestus/hardware.nix index 7ab603d..822b38b 100644 --- a/machines/hephaestus/hardware.nix +++ b/machines/hephaestus/hardware.nix @@ -9,10 +9,18 @@ boot.kernelModules = [ "kvm-amd" ]; boot.extraModulePackages = [ ]; - boot.initrd.luks.devices.luksroot = { - allowDiscards = true; - device = "/dev/disk/by-uuid/570a2b97-3310-4784-9138-6e09037cea17"; - preLVM = true; + boot.initrd.luks.devices = { + luksroot = { + allowDiscards = true; + device = "/dev/disk/by-uuid/570a2b97-3310-4784-9138-6e09037cea17"; + preLVM = true; + }; + + luksstorage = { + allowDiscards = true; + device = "/dev/disk/by-uuid/23b54f60-1eb8-4bf1-b04c-79f8537c228a"; + preLVM = true; + }; }; fileSystems."/" = { @@ -28,6 +36,11 @@ swapDevices = [{ device = "/dev/disk/by-uuid/aca92a73-2941-40ca-88c4-0dd8607d232a"; }]; + fileSystems."/mnt/storage" = { + device = "/dev/disk/by-uuid/0f592fca-1d4e-43f7-9bf4-f1c3e19e841f"; + fsType = "ext4"; + }; + # high-resolution display hardware.video.hidpi.enable = lib.mkDefault true;