aboutsummaryrefslogtreecommitdiff
path: root/nixos/tw/disk-config.nix
diff options
context:
space:
mode:
authorspl3g <spleefer6@yandex.ru>2025-08-24 00:38:44 +0500
committerspl3g <spleefer6@yandex.ru>2025-08-24 00:52:43 +0500
commit9ba5fb2b707d13440c1e14c5c3a42a860d4e12cf (patch)
tree6de26005e8375b480a221009543b0ab97fe83cea /nixos/tw/disk-config.nix
parente9d70f9e9377c3bcbbf7dda26b9dfd14193e5f64 (diff)
feat: add a tw config
Diffstat (limited to 'nixos/tw/disk-config.nix')
-rw-r--r--nixos/tw/disk-config.nix55
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"
+ ];
+ };
+ };
+ };
+ };
+ };
+ };
+}