2022-02-15 11:04:08 +00:00
|
|
|
{ }: rec {
|
|
|
|
# Mountpoints
|
|
|
|
root_mountpoint = "/";
|
|
|
|
boot_mountpoint = "/boot";
|
2022-02-15 11:02:07 +00:00
|
|
|
|
2022-02-15 11:04:08 +00:00
|
|
|
# Partition Labels
|
|
|
|
boot_label = "nixboot";
|
2022-02-16 16:56:00 +00:00
|
|
|
unencrypted_root_label = "nixos";
|
2022-02-15 11:04:08 +00:00
|
|
|
encrypted_root_partlabel = "nixos_encrypted";
|
2022-02-15 11:02:07 +00:00
|
|
|
|
2022-02-15 11:04:08 +00:00
|
|
|
# Partition Filesystems
|
|
|
|
unencrypted_root_fs_type = "ext4";
|
|
|
|
boot_fs_type = "vfat";
|
2022-02-15 11:02:07 +00:00
|
|
|
|
2022-02-15 11:04:08 +00:00
|
|
|
# Mapper Name
|
|
|
|
root_mapper_name = "cryptroot";
|
2022-02-15 11:02:07 +00:00
|
|
|
|
2022-02-15 11:04:08 +00:00
|
|
|
# FS Paths
|
|
|
|
encrypted_root_path = "/dev/disk/by-partlabel/${encrypted_root_partlabel}";
|
|
|
|
decrypted_root_path = "/dev/mapper/${root_mapper_name}";
|
2022-02-15 11:02:07 +00:00
|
|
|
|
2022-02-15 11:04:08 +00:00
|
|
|
boot_path = "/dev/disk/by-label/${boot_label}";
|
2022-02-15 11:02:07 +00:00
|
|
|
|
2022-02-15 11:04:08 +00:00
|
|
|
}
|