From 46e80b8f3c1cca414c899cff127bf649f338efe9 Mon Sep 17 00:00:00 2001 From: Tristan Druyen Date: Mon, 18 Sep 2023 16:14:20 +0200 Subject: [PATCH] Optimize subvolume names Signed-off-by: Tristan Druyen --- disko.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/disko.nix b/disko.nix index 51f9312..5f01d69 100644 --- a/disko.nix +++ b/disko.nix @@ -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"]; };