removing growpartition
This commit is contained in:
parent
75625f3a47
commit
81d34a8a18
1 changed files with 43 additions and 23 deletions
66
flake.nix
66
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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue