From 13425379e79a6cf6a4d71331222683171f5a9e25 Mon Sep 17 00:00:00 2001 From: jopejoe1 Date: Fri, 19 Jan 2024 00:22:27 +0100 Subject: [PATCH] hetzner --- systems/hetzner/default.nix | 48 +++++++++++++++---------------------- 1 file changed, 19 insertions(+), 29 deletions(-) diff --git a/systems/hetzner/default.nix b/systems/hetzner/default.nix index aaa0c40..00d82f7 100644 --- a/systems/hetzner/default.nix +++ b/systems/hetzner/default.nix @@ -51,47 +51,37 @@ }; disko.devices = { disk = { - one = { - type = "disk"; + vdb = { device = "/dev/disk/by-id/nvme-SAMSUNG_MZVL2512HCJQ-00B00_S675NX0RA55622"; + type = "disk"; content = { - type = "gpt"; - partitions = { - ESP = { - type = "EF00"; - size = "500M"; + type = "table"; + format = "msdos"; + partitions = [ + { + name = "ESP"; + start = "1M"; + end = "500M"; + bootable = true; content = { type = "filesystem"; format = "vfat"; mountpoint = "/boot"; }; - }; - root = { - size = "100%"; + } + { + name = "root"; + start = "500M"; + end = "100%"; + part-type = "primary"; + bootable = true; content = { type = "filesystem"; format = "ext4"; mountpoint = "/"; }; - }; - }; - }; - }; - two = { - type = "disk"; - device = "/dev/disk/by-id/nvme-SAMSUNG_MZVL2512HCJQ-00B00_S675NX0RA55649"; - content = { - type = "gpt"; - partitions = { - extra = { - size = "100%"; - content = { - type = "filesystem"; - format = "ext4"; - mountpoint = "/media/extra"; - }; - }; - }; + } + ]; }; }; };