From 7e437cf2937674e10b5ec51672af5f7d47c36a73 Mon Sep 17 00:00:00 2001 From: Noa Aarts Date: Wed, 12 Nov 2025 08:28:35 +0100 Subject: [PATCH] update nuos partition table --- hosts/nuos/disk-config.nix | 37 ++++++++++++++++++++++++++++++------- 1 file changed, 30 insertions(+), 7 deletions(-) diff --git a/hosts/nuos/disk-config.nix b/hosts/nuos/disk-config.nix index a2870b0..1655b84 100644 --- a/hosts/nuos/disk-config.nix +++ b/hosts/nuos/disk-config.nix @@ -15,7 +15,7 @@ }; esp = { name = "ESP"; - size = "500M"; + size = "1G"; type = "EF00"; content = { type = "filesystem"; @@ -26,12 +26,35 @@ root = { size = "100%"; content = { - type = "filesystem"; - format = "ext4"; - mountpoint = "/"; - mountOptions = [ - "defaults" - ]; + type = "btrfs"; + subvolumes = { + "/rootfs" = { + mountpoint = "/"; + }; + + "/home" = { + mountOptions = [ "compress=zstd" ]; + mountpoint = "/home"; + }; + + "/nix" = { + mountOptions = [ + "compress=zstd" + "noatime" + ]; + mountpoint = "/nix"; + }; + + "/immich" = { + mountOptions = [ + "compress=zstd" + "noatime" + ]; + mountpoint = "/var/lib/immich"; + }; + }; + + mountpoint = "/partition-root"; }; }; };