api/disk-templates: adopt directory structure from clan modules

This commit is contained in:
Johannes Kirschbauer
2024-12-03 12:01:24 +01:00
parent cf3a5df51e
commit d15e801940
5 changed files with 159 additions and 20 deletions

View File

@@ -0,0 +1,23 @@
---
description = "Simple single disk schema"
---
# Description
This schema defines a GPT-based disk layout.
### **Disk Overview**
- **Name**: `main-{{uuid}}`
- **Device**: `{{mainDisk}}`
### **Partitions**
1. **EFI System Partition (ESP)**
- Size: `500M`.
- Filesystem: `vfat`.
- Mount Point: `/boot` (secure `umask=0077`).
2. **Root Partition**
- Size: Remaining disk space (`100%`).
- Filesystem: `ext4`.
- Mount Point: `/`.

View File

@@ -0,0 +1,34 @@
{
disko.devices = {
disk = {
main = {
name = "main-{{uuid}}";
device = "{{mainDisk}}";
type = "disk";
content = {
type = "gpt";
partitions = {
ESP = {
type = "EF00";
size = "500M";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
mountOptions = [ "umask=0077" ];
};
};
root = {
size = "100%";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
};
};
};
};
};
};
};
}