diff options
| author | spl3g <spleefer6@yandex.ru> | 2025-05-01 15:16:02 +0300 |
|---|---|---|
| committer | spl3g <spleefer6@yandex.ru> | 2025-05-02 19:58:18 +0300 |
| commit | dce1f40f9b80bc221d1b960efced2369384a278f (patch) | |
| tree | fbd84178cde34757dbcd74c1afe7668541227549 /nixos/server/disk-config.nix | |
| parent | 8e4059ac9d5a485f0e6eda771768aad541c43b49 (diff) | |
feat: add the actual server configuration
Diffstat (limited to 'nixos/server/disk-config.nix')
| -rw-r--r-- | nixos/server/disk-config.nix | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/nixos/server/disk-config.nix b/nixos/server/disk-config.nix new file mode 100644 index 0000000..a51111a --- /dev/null +++ b/nixos/server/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" + ]; + }; + }; + }; + }; + }; + }; +} |
