diff options
| author | Dominik Kaiser | 2025-02-15 21:03:46 +0100 |
|---|---|---|
| committer | Dominik Kaiser | 2025-02-15 21:03:46 +0100 |
| commit | 9186851cd8dd346f9187f5b57843e068d070b8e8 (patch) | |
| tree | 3bd2d11acd30f584da1894313e7097faef3d82da /hosts/antares | |
| parent | 8a180e440b2a97e0e8a0293d180d8783dd7ead4f (diff) | |
| download | nixos-9186851cd8dd346f9187f5b57843e068d070b8e8.tar.gz nixos-9186851cd8dd346f9187f5b57843e068d070b8e8.zip | |
Fix some errors on antares config
Diffstat (limited to 'hosts/antares')
| -rw-r--r-- | hosts/antares/disk-config.nix | 56 |
1 files changed, 56 insertions, 0 deletions
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" + ]; + }; + }; + }; + }; + }; + }; +} |
