aboutsummaryrefslogtreecommitdiff
path: root/nixos/server/disk-config.nix
diff options
context:
space:
mode:
authorspl3g <spleefer6@yandex.ru>2025-08-22 22:24:17 +0500
committerspl3g <spleefer6@yandex.ru>2025-08-22 22:38:35 +0500
commitc7117141d2f42f5be5006d07e6d6476238fb96e6 (patch)
tree3af321b84206cd81da271dcdfcae9f50d9c7c34d /nixos/server/disk-config.nix
parent47e63d8f111bd933ce5f42f0dc31ada473d74167 (diff)
feat: update the server to be my local one
Diffstat (limited to 'nixos/server/disk-config.nix')
-rw-r--r--nixos/server/disk-config.nix70
1 files changed, 26 insertions, 44 deletions
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 = "/";
+ };
};
};
};