Optimize subvolume names

Signed-off-by: Tristan Druyen <tristan@vault81.de>
This commit is contained in:
Tristan D. 2023-09-18 16:14:20 +02:00
parent b1a2be5480
commit 46e80b8f3c
Signed by: tristan
SSH key fingerprint: SHA256:U7y6eMb7CQDaTHv9XoX6/BaQnPqyxxKc+Xnfcefi6rY

View file

@ -76,6 +76,7 @@
passwordFile = "/tmp/secret.key";
additionalKeyFiles = [];
content = {
# this partiton needs to be in the last parent part alphabetically to ensure the referenced /crypted_0 dev already exists
type = "btrfs";
extraArgs = [
"-L btrfs_vault"
@ -85,15 +86,15 @@
"/dev/mapper/crypted_0"
];
subvolumes = {
"/root" = {
"/_active/root" = {
mountpoint = "/";
mountOptions = ["compress=zstd" "noatime"];
};
"/home" = {
"/_active/home" = {
mountpoint = "/home";
mountOptions = ["compress=zstd" "noatime"];
mountOptions = ["compress=zstd" "relatime"];
};
"/nix" = {
"/_active/nix" = {
mountpoint = "/nix";
mountOptions = ["compress=zstd" "noatime"];
};