nixfiles/data/drives/encryptedDrive.nix

26 lines
566 B
Nix
Raw Normal View History

2023-09-20 15:46:20 +01:00
# This works with both UEFI and BIOS based systems
2023-09-18 03:56:58 +01:00
rec {
# Mountpoints
mountpoint = "/";
bootMountpoint = "/boot";
# Partition Labels
bootLabel = "nixboot";
unencryptedLabel = "nixos";
encryptedPartLabel = "nixos_encrypted";
# Partition Filesystems
unencryptedFSType = "ext4";
bootFSType = "vfat";
# Mapper Name
mapperName = "cryptroot";
# FS Paths
encryptedPath = "/dev/disk/by-partlabel/${encryptedPartLabel}";
decryptedPath = "/dev/mapper/${mapperName}";
2023-09-20 15:46:20 +01:00
# the /boot parition
2023-09-18 03:56:58 +01:00
bootPath = "/dev/disk/by-label/${bootLabel}";
}