summaryrefslogtreecommitdiff
path: root/disks/utm.nix
diff options
context:
space:
mode:
authorFuwn <[email protected]>2025-05-04 04:15:15 -0700
committerFuwn <[email protected]>2025-05-04 04:15:15 -0700
commit876f417afe6dc9d6b165f10b23d69ab433094509 (patch)
treeb91c3eabde80be7e29f2c970f0f51f49b484bfac /disks/utm.nix
parentNara: Add Motrix cask (diff)
downloadnixos-config-876f417afe6dc9d6b165f10b23d69ab433094509.tar.xz
nixos-config-876f417afe6dc9d6b165f10b23d69ab433094509.zip
UTM: Add UTM build host
Diffstat (limited to 'disks/utm.nix')
-rw-r--r--disks/utm.nix58
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" ];
+ };
+ };
+ };
+ };
+}