From 81d34a8a18214512692524a886c267777789b07b Mon Sep 17 00:00:00 2001 From: jeirmeister Date: Fri, 12 Sep 2025 14:02:59 -0700 Subject: [PATCH] removing growpartition --- flake.nix | 66 ++++++++++++++++++++++++++++++++++++------------------- 1 file changed, 43 insertions(+), 23 deletions(-) diff --git a/flake.nix b/flake.nix index 809e930..0a445d7 100644 --- a/flake.nix +++ b/flake.nix @@ -38,28 +38,36 @@ nix-bitcoin.generateSecrets = true; disko.devices = { + # ───────── Root disk ───────── disk.root = { + type = "disk"; device = "/dev/sda"; - format = "gpt"; - partitions = { - ESP = { - size = "512M"; - type = "EF00"; - format = "vfat"; - content = { - type = "filesystem"; - mountpoint = "/boot"; + + content = { + type = "gpt"; + partitions = { + ESP = { + size = "512M"; + type = "EF00"; + content = { + type = "filesystem"; + format = "vfat"; + mountpoint = "/boot"; + }; }; - }; - root = { - size = "100%"; - content = { - type = "lvm_pv"; - vg = "root_vg"; + + root = { + size = "100%"; + content = { + type = "lvm_pv"; + vg = "root_vg"; + }; }; }; }; }; + + # LVM volume group on the root partition lvm_vg.root_vg = { type = "lvm_vg"; lvs = { @@ -74,20 +82,32 @@ }; }; }; + + # ───────── Data disk for bitcoind ───────── disk.data = { + type = "disk"; device = "/dev/sdb"; - partitions = { - data = { - size = "100%"; - type = "8300"; # Linux filesystem - format = "xfs"; - mountpoint = "/var/lib/bitcoind"; - options = ["noatime"]; + + content = { + type = "gpt"; + partitions = { + data = { + size = "100%"; + type = "8300"; # regular Linux FS + content = { + type = "filesystem"; + format = "xfs"; + mountpoint = "/var/lib/bitcoind"; + mountOptions = ["noatime"]; + }; + }; }; }; }; }; - growpart.enable = true; # Enables the growpart service + + # Auto-grow the /dev/sdb partition after you enlarge the disk in Proxmox + growpart.enable = true; services.bitcoind = { enable = true;