removing growpartition

This commit is contained in:
jeirmeister 2025-09-12 14:02:59 -07:00
parent 75625f3a47
commit 81d34a8a18

View file

@ -38,28 +38,36 @@
nix-bitcoin.generateSecrets = true; nix-bitcoin.generateSecrets = true;
disko.devices = { disko.devices = {
# ───────── Root disk ─────────
disk.root = { disk.root = {
type = "disk";
device = "/dev/sda"; device = "/dev/sda";
format = "gpt";
partitions = { content = {
ESP = { type = "gpt";
size = "512M"; partitions = {
type = "EF00"; ESP = {
format = "vfat"; size = "512M";
content = { type = "EF00";
type = "filesystem"; content = {
mountpoint = "/boot"; type = "filesystem";
format = "vfat";
mountpoint = "/boot";
};
}; };
};
root = { root = {
size = "100%"; size = "100%";
content = { content = {
type = "lvm_pv"; type = "lvm_pv";
vg = "root_vg"; vg = "root_vg";
};
}; };
}; };
}; };
}; };
# LVM volume group on the root partition
lvm_vg.root_vg = { lvm_vg.root_vg = {
type = "lvm_vg"; type = "lvm_vg";
lvs = { lvs = {
@ -74,20 +82,32 @@
}; };
}; };
}; };
# ───────── Data disk for bitcoind ─────────
disk.data = { disk.data = {
type = "disk";
device = "/dev/sdb"; device = "/dev/sdb";
partitions = {
data = { content = {
size = "100%"; type = "gpt";
type = "8300"; # Linux filesystem partitions = {
format = "xfs"; data = {
mountpoint = "/var/lib/bitcoind"; size = "100%";
options = ["noatime"]; 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 = { services.bitcoind = {
enable = true; enable = true;