aboutsummaryrefslogtreecommitdiff
path: root/nixos/vps/disk-config.nix
diff options
context:
space:
mode:
authorspl3g <spleefer6@yandex.ru>2025-08-22 22:25:05 +0500
committerspl3g <spleefer6@yandex.ru>2025-08-22 22:38:35 +0500
commit2a5bcce18b8b4405efbf1ade8551010055f73980 (patch)
treeb8aecb6a85af6f4dc9f12a8902c96f7d9394a947 /nixos/vps/disk-config.nix
parentc087d476f03b9e94a879ab1fa752ffe90de3e7f9 (diff)
feat: add vps configuration
Diffstat (limited to 'nixos/vps/disk-config.nix')
-rw-r--r--nixos/vps/disk-config.nix55
1 files changed, 55 insertions, 0 deletions
diff --git a/nixos/vps/disk-config.nix b/nixos/vps/disk-config.nix
new file mode 100644
index 0000000..a51111a
--- /dev/null
+++ b/nixos/vps/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"
+ ];
+ };
+ };
+ };
+ };
+ };
+ };
+}