From c7117141d2f42f5be5006d07e6d6476238fb96e6 Mon Sep 17 00:00:00 2001 From: spl3g Date: Fri, 22 Aug 2025 22:24:17 +0500 Subject: feat: update the server to be my local one --- nixos/server/disk-config.nix | 70 ++++++++++++++++---------------------------- 1 file changed, 26 insertions(+), 44 deletions(-) (limited to 'nixos/server/disk-config.nix') diff --git a/nixos/server/disk-config.nix b/nixos/server/disk-config.nix index a51111a..2495ada 100644 --- a/nixos/server/disk-config.nix +++ b/nixos/server/disk-config.nix @@ -1,51 +1,33 @@ -{ 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"; + disk = { + main = { + device = "/dev/sdb"; + type = "disk"; + content = { + type = "gpt"; + partitions = { + boot = { + size = "1M"; + type = "EF02"; }; - }; - root = { - name = "root"; - size = "100%"; - content = { - type = "lvm_pv"; - vg = "pool"; + ESP = { + size = "1G"; + type = "EF00"; + content = { + type = "filesystem"; + format = "vfat"; + mountpoint = "/boot"; + mountOptions = [ "umask=0077" ]; + }; }; - }; - }; - }; - }; - lvm_vg = { - pool = { - type = "lvm_vg"; - lvs = { - root = { - size = "100%FREE"; - content = { - type = "filesystem"; - format = "ext4"; - mountpoint = "/"; - mountOptions = [ - "defaults" - ]; + root = { + size = "100%"; + content = { + type = "filesystem"; + format = "ext4"; + mountpoint = "/"; + }; }; }; }; -- cgit v1.2.3