From 9186851cd8dd346f9187f5b57843e068d070b8e8 Mon Sep 17 00:00:00 2001 From: Dominik Kaiser Date: Sat, 15 Feb 2025 21:03:46 +0100 Subject: Fix some errors on antares config --- hosts/antares/disk-config.nix | 56 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 hosts/antares/disk-config.nix (limited to 'hosts') diff --git a/hosts/antares/disk-config.nix b/hosts/antares/disk-config.nix new file mode 100644 index 0000000..88e17e5 --- /dev/null +++ b/hosts/antares/disk-config.nix @@ -0,0 +1,56 @@ +# Example to create a bios compatible gpt partition +{ lib, ... }: +{ + disko.devices = { + disk.disk1 = { + device = lib.mkDefault "/dev/vda"; + type = "disk"; + content = { + type = "gpt"; + partitions = { + boot = { + name = "boot"; + size = "1M"; + type = "EF02"; + }; + esp = { + name = "ESP"; + size = "500M"; + type = "EF00"; + content = { + type = "filesystem"; + format = "vfat"; + mountpoint = "/boot"; + }; + }; + root = { + name = "root"; + size = "100%"; + content = { + type = "lvm_pv"; + vg = "pool"; + }; + }; + }; + }; + }; + lvm_vg = { + pool = { + type = "lvm_vg"; + lvs = { + root = { + size = "100%FREE"; + content = { + type = "filesystem"; + format = "ext4"; + mountpoint = "/"; + mountOptions = [ + "defaults" + ]; + }; + }; + }; + }; + }; + }; +} -- cgit v1.2.3