diff options
| author | spl3g <spleefer6@yandex.ru> | 2025-08-24 00:38:44 +0500 |
|---|---|---|
| committer | spl3g <spleefer6@yandex.ru> | 2025-08-24 00:52:43 +0500 |
| commit | 9ba5fb2b707d13440c1e14c5c3a42a860d4e12cf (patch) | |
| tree | 6de26005e8375b480a221009543b0ab97fe83cea /nixos/tw/disk-config.nix | |
| parent | e9d70f9e9377c3bcbbf7dda26b9dfd14193e5f64 (diff) | |
feat: add a tw config
Diffstat (limited to 'nixos/tw/disk-config.nix')
| -rw-r--r-- | nixos/tw/disk-config.nix | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/nixos/tw/disk-config.nix b/nixos/tw/disk-config.nix new file mode 100644 index 0000000..1641339 --- /dev/null +++ b/nixos/tw/disk-config.nix @@ -0,0 +1,55 @@ +{ 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" + ]; + }; + }; + }; + }; + }; + }; +} |
