diff options
| author | Franck Cuny <franck@fcuny.net> | 2025-10-24 09:02:29 -0700 |
|---|---|---|
| committer | Franck Cuny <franck@fcuny.net> | 2025-10-24 09:02:29 -0700 |
| commit | e55b8ee0f7073b46fb343a97ee744a95ec40d2ed (patch) | |
| tree | 329c992647f1c420cbf87cec4cca206474f98b39 /profiles | |
| parent | move a few more things back as profiles (diff) | |
| download | infra-e55b8ee0f7073b46fb343a97ee744a95ec40d2ed.tar.gz | |
simplify hosts management
Diffstat (limited to 'profiles')
| -rw-r--r-- | profiles/disk/basic-vm.nix | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/profiles/disk/basic-vm.nix b/profiles/disk/basic-vm.nix new file mode 100644 index 0000000..f3d9f33 --- /dev/null +++ b/profiles/disk/basic-vm.nix @@ -0,0 +1,54 @@ +{ ... }: +{ + disko.devices = { + disk.disk1 = { + 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" + ]; + }; + }; + }; + }; + }; + }; +} |
