From 453947ac7bd99c989ec5b4fea349b32d537729f6 Mon Sep 17 00:00:00 2001 From: Kyle Isom Date: Thu, 2 Apr 2026 00:12:14 -0700 Subject: [PATCH] fix straylight /home LUKS: use initrd instead of crypttab Replace fragile environment.etc.crypttab.text with boot.initrd.luks.devices for the second SSD, matching the pattern used for the root drive. Co-Authored-By: Claude Opus 4.6 (1M context) --- hw/straylight/hardware-configuration.nix | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/hw/straylight/hardware-configuration.nix b/hw/straylight/hardware-configuration.nix index a9fbbc9..d1e9dcf 100644 --- a/hw/straylight/hardware-configuration.nix +++ b/hw/straylight/hardware-configuration.nix @@ -30,16 +30,15 @@ options = [ "fmask=0077" "dmask=0077" ]; }; + boot.initrd.luks.devices."home-crypt" = { + device = "/dev/disk/by-uuid/edfdcdf4-083a-4826-a1f8-9670545e0bc5"; + }; + fileSystems."/home" = { device = "/dev/mapper/home-crypt"; fsType = "ext4"; - options = [ "defaults" ]; }; - environment.etc.crypttab.text = '' - home-crypt UUID=edfdcdf4-083a-4826-a1f8-9670545e0bc5 /etc/secrets/home.key luks - ''; - swapDevices = [ ]; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";