diff --git a/hosts/midgard/disko.nix b/hosts/midgard/disko.nix index 2337a90..dce18c1 100644 --- a/hosts/midgard/disko.nix +++ b/hosts/midgard/disko.nix @@ -1,5 +1,37 @@ { ... }: { - # TODO: Define the midgard disk layout. + disko.devices = { + disk.main = { + type = "disk"; + device = "/dev/disk/by-id/REPLACE_WITH_MIDGARD_DISK_ID"; + + content = { + type = "gpt"; + + partitions = { + ESP = { + size = "512M"; + type = "EF00"; + + content = { + type = "filesystem"; + format = "vfat"; + mountpoint = "/boot"; + }; + }; + + root = { + size = "100%"; + + content = { + type = "filesystem"; + format = "ext4"; + mountpoint = "/"; + }; + }; + }; + }; + }; + }; } diff --git a/hosts/yggdrasil/disko.nix b/hosts/yggdrasil/disko.nix index 2f65591..f7ea73e 100644 --- a/hosts/yggdrasil/disko.nix +++ b/hosts/yggdrasil/disko.nix @@ -1,5 +1,37 @@ { ... }: { - # TODO: Define the yggdrasil disk layout. + disko.devices = { + disk.main = { + type = "disk"; + device = "/dev/disk/by-id/REPLACE_WITH_YGGDRASIL_DISK_ID"; + + content = { + type = "gpt"; + + partitions = { + ESP = { + size = "512M"; + type = "EF00"; + + content = { + type = "filesystem"; + format = "vfat"; + mountpoint = "/boot"; + }; + }; + + root = { + size = "100%"; + + content = { + type = "filesystem"; + format = "ext4"; + mountpoint = "/"; + }; + }; + }; + }; + }; + }; }