.
This commit is contained in:
parent
78378f57e5
commit
544c72b7b2
1 changed files with 13 additions and 4 deletions
17
flake.nix
17
flake.nix
|
|
@ -38,7 +38,6 @@
|
||||||
nix-bitcoin.generateSecrets = true;
|
nix-bitcoin.generateSecrets = true;
|
||||||
|
|
||||||
disko.devices = {
|
disko.devices = {
|
||||||
# ───────── Root disk ─────────
|
|
||||||
disk.root = {
|
disk.root = {
|
||||||
type = "disk";
|
type = "disk";
|
||||||
device = "/dev/sda";
|
device = "/dev/sda";
|
||||||
|
|
@ -67,7 +66,6 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# LVM volume group on the root partition
|
|
||||||
lvm_vg.root_vg = {
|
lvm_vg.root_vg = {
|
||||||
type = "lvm_vg";
|
type = "lvm_vg";
|
||||||
lvs = {
|
lvs = {
|
||||||
|
|
@ -83,7 +81,6 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# ───────── Data disk for bitcoind ─────────
|
|
||||||
disk.data = {
|
disk.data = {
|
||||||
type = "disk";
|
type = "disk";
|
||||||
device = "/dev/sdb";
|
device = "/dev/sdb";
|
||||||
|
|
@ -93,7 +90,7 @@
|
||||||
partitions = {
|
partitions = {
|
||||||
data = {
|
data = {
|
||||||
size = "100%";
|
size = "100%";
|
||||||
type = "8300"; # regular Linux FS
|
type = "8300";
|
||||||
content = {
|
content = {
|
||||||
type = "filesystem";
|
type = "filesystem";
|
||||||
format = "xfs";
|
format = "xfs";
|
||||||
|
|
@ -105,6 +102,18 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
boot.loader = {
|
||||||
|
efi = {
|
||||||
|
canTouchEfiVariables = true;
|
||||||
|
efiSysMountPoint = "/boot";
|
||||||
|
};
|
||||||
|
grub = {
|
||||||
|
enable = true;
|
||||||
|
device = "nodev"; # For UEFI; installs to ESP
|
||||||
|
efiSupport = true;
|
||||||
|
useOSProber = false; # Avoid scanning sdb
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
services.bitcoind = {
|
services.bitcoind = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue