diff options
| author | Fuwn <[email protected]> | 2025-05-04 04:15:15 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2025-05-04 04:15:15 -0700 |
| commit | 876f417afe6dc9d6b165f10b23d69ab433094509 (patch) | |
| tree | b91c3eabde80be7e29f2c970f0f51f49b484bfac /disks/utm.nix | |
| parent | Nara: Add Motrix cask (diff) | |
| download | nixos-config-876f417afe6dc9d6b165f10b23d69ab433094509.tar.xz nixos-config-876f417afe6dc9d6b165f10b23d69ab433094509.zip | |
UTM: Add UTM build host
Diffstat (limited to 'disks/utm.nix')
| -rw-r--r-- | disks/utm.nix | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/disks/utm.nix b/disks/utm.nix new file mode 100644 index 0000000..6ae8d9f --- /dev/null +++ b/disks/utm.nix @@ -0,0 +1,58 @@ +{ lib, ... }: +{ + disko.devices = { + disk.disk1 = { + device = lib.mkDefault "/dev/sda"; + 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" ]; + }; + }; + }; + }; +} |