removing growpartition

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

View file

@ -38,19 +38,24 @@
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";
content = {
type = "gpt";
partitions = { partitions = {
ESP = { ESP = {
size = "512M"; size = "512M";
type = "EF00"; type = "EF00";
format = "vfat";
content = { content = {
type = "filesystem"; type = "filesystem";
format = "vfat";
mountpoint = "/boot"; mountpoint = "/boot";
}; };
}; };
root = { root = {
size = "100%"; size = "100%";
content = { content = {
@ -60,6 +65,9 @@
}; };
}; };
}; };
};
# 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";
content = {
type = "gpt";
partitions = { partitions = {
data = { data = {
size = "100%"; size = "100%";
type = "8300"; # Linux filesystem type = "8300"; # regular Linux FS
content = {
type = "filesystem";
format = "xfs"; format = "xfs";
mountpoint = "/var/lib/bitcoind"; mountpoint = "/var/lib/bitcoind";
options = ["noatime"]; 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;