2022-02-15 11:04:08 +00:00
|
|
|
{ ... }: rec {
|
|
|
|
# Mountpoints
|
|
|
|
mountpoint = "/usb";
|
2022-02-15 11:02:07 +00:00
|
|
|
|
2022-02-15 11:04:08 +00:00
|
|
|
# Partition Labels
|
|
|
|
encrypted_partlabel = "usb";
|
|
|
|
unencrypted_label = "usb_unencrypted";
|
2022-02-15 11:02:07 +00:00
|
|
|
|
2022-02-15 11:04:08 +00:00
|
|
|
# Partition Filesystems
|
|
|
|
unencrypted_fs_type = "ext4";
|
2022-02-15 11:02:07 +00:00
|
|
|
|
2022-02-15 11:04:08 +00:00
|
|
|
# Mapper Information
|
|
|
|
mapper_name = "usb_unencrypted";
|
2022-02-15 11:02:07 +00:00
|
|
|
|
2022-02-15 11:04:08 +00:00
|
|
|
# FS Paths
|
|
|
|
encrypted_path = "/dev/disk/by-partlabel/${encrypted_partlabel}";
|
|
|
|
unencrypted_path = "/dev/disk/by-label/${unencrypted_label}";
|
|
|
|
mapper_path = "/dev/mapper/${mapper_name}";
|
2022-02-15 11:02:07 +00:00
|
|
|
|
2022-02-15 11:04:08 +00:00
|
|
|
# Paths to some important files
|
|
|
|
lappy_encryption_key_path = "${mountpoint}/encryption-keys/lappy.key";
|
2022-02-15 11:02:07 +00:00
|
|
|
|
2022-02-15 12:57:23 +00:00
|
|
|
chaos_age_privkey_path = "${mountpoint}/age-keys/chaoskey.priv";
|
|
|
|
chaos_age_pubkey_path = "${mountpoint}/age-keys/chaoskey.pub";
|
|
|
|
|
|
|
|
ssh_priv_path = "${mountpoint}/ssh-keys/chaos.priv";
|
|
|
|
ssh_pub_path = "${mountpoint}/ssh-keys/chaos.pub";
|
2022-02-15 11:04:08 +00:00
|
|
|
}
|