diff options
| author | spl3g <speefer6@yandex.ru> | 2025-09-16 13:07:19 +0300 |
|---|---|---|
| committer | spl3g <speefer6@yandex.ru> | 2025-09-16 13:07:19 +0300 |
| commit | b458cd0e6b841e6fe5257e851ffe618d10475ba4 (patch) | |
| tree | 85eeb24feafa2d7c9af33ae5f74ff60cbaf1c434 /nixos/vpn/disk-config.nix | |
| parent | b9e446478d786b39dd5d56154607bcf9885d41cd (diff) | |
fix: rename the vps server
Diffstat (limited to 'nixos/vpn/disk-config.nix')
| -rw-r--r-- | nixos/vpn/disk-config.nix | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/nixos/vpn/disk-config.nix b/nixos/vpn/disk-config.nix new file mode 100644 index 0000000..a51111a --- /dev/null +++ b/nixos/vpn/disk-config.nix @@ -0,0 +1,55 @@ +{ lib, ... }: +{ + disko.devices = { + disk.disk1 = { + device = lib.mkDefault "/dev/vda"; + 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" + ]; + }; + }; + }; + }; + }; + }; +} |
