2024-12-21 11:15:14 -07:00
|
|
|
{ ... }:
|
|
|
|
{
|
|
|
|
fileSystems."/mnt/hdd" = {
|
|
|
|
device = "/dev/mapper/hdd";
|
|
|
|
fsType = "btrfs";
|
2025-01-03 21:38:24 -07:00
|
|
|
options = [ "compress=zstd:3" "autodefrag" "nofail" ];
|
2024-12-21 11:15:14 -07:00
|
|
|
|
|
|
|
encrypted = {
|
|
|
|
enable = true;
|
|
|
|
label = "hdd";
|
|
|
|
blkDev = "/dev/disk/by-uuid/eab5e1d6-6956-46fd-b3ac-5fcf525e1df8";
|
2025-01-03 21:38:24 -07:00
|
|
|
keyFile = "/sysroot/root/hdd.key";
|
2024-12-21 11:15:14 -07:00
|
|
|
};
|
|
|
|
};
|
2025-01-03 21:38:24 -07:00
|
|
|
|
|
|
|
# Loading the uas kernel module early is needed to mount the above drive via USB-SATA adapter
|
|
|
|
boot.initrd.kernelModules = [ "uas" ];
|
|
|
|
}
|