diff --git a/flake.nix b/flake.nix index 7d9376c..9e578f2 100644 --- a/flake.nix +++ b/flake.nix @@ -38,7 +38,6 @@ nix-bitcoin.generateSecrets = true; disko.devices = { - # ───────── Root disk ───────── disk.root = { type = "disk"; device = "/dev/sda"; @@ -67,7 +66,6 @@ }; }; - # LVM volume group on the root partition lvm_vg.root_vg = { type = "lvm_vg"; lvs = { @@ -83,7 +81,6 @@ }; }; - # ───────── Data disk for bitcoind ───────── disk.data = { type = "disk"; device = "/dev/sdb"; @@ -93,7 +90,7 @@ partitions = { data = { size = "100%"; - type = "8300"; # regular Linux FS + type = "8300"; content = { type = "filesystem"; 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 = { enable = true;