diff options
| author | Rosa <rosaontheweb@proton.me> | 2026-03-30 11:14:00 -0400 |
|---|---|---|
| committer | Rosa <rosaontheweb@proton.me> | 2026-03-30 11:14:00 -0400 |
| commit | 7a967e9b9f042becc41b4321c381905d19afc89e (patch) | |
| tree | bec28028173af7ced723dfca7891acdc5fb9205e /hosts/canadian-government-system | |
| parent | 23fe66b07669a4c76784009dbba0d7ddeb52fba8 (diff) | |
fix server disk config (i think)
Diffstat (limited to 'hosts/canadian-government-system')
| -rw-r--r-- | hosts/canadian-government-system/disks.nix | 115 |
1 files changed, 59 insertions, 56 deletions
diff --git a/hosts/canadian-government-system/disks.nix b/hosts/canadian-government-system/disks.nix index 01a23e7..6e86a26 100644 --- a/hosts/canadian-government-system/disks.nix +++ b/hosts/canadian-government-system/disks.nix @@ -1,63 +1,85 @@ { - disko.devices.disk = { - boot1 = { - content = { - partitions = { - boot = { - content = { - name = "boot"; - type = "mdraid"; + disko.devices = { + disk = { + boot1 = { + content = { + partitions = { + boot = { + content = { + name = "boot"; + type = "mdraid"; + }; + + size = "500M"; + type = "EF00"; }; - size = "500M"; - type = "EF00"; - }; + root = { + content = { + name = "raid1"; + type = "mdraid"; + }; - root = { - content = { - name = "raid1"; - type = "mdraid"; + size = "100%"; }; - - size = "100%"; }; + + type = "gpt"; }; - type = "gpt"; + device = "/dev/sda"; + type = "disk"; }; - device = "/dev/sda"; - type = "disk"; - }; + boot2 = { + content = { + partitions = { + boot = { + content = { + name = "boot"; + type = "mdraid"; + }; - boot2 = { - content = { - partitions = { - boot = { - content = { - name = "boot"; - type = "mdraid"; + size = "500M"; + type = "EF00"; }; - size = "500M"; - type = "EF00"; + root = { + content = { + name = "raid1"; + type = "mdraid"; + }; + + size = "100%"; + }; }; - root = { + type = "gpt"; + }; + + device = "/dev/sdb"; + type = "disk"; + }; + + mass-storage = { + content = { + partitions.main = { content = { - name = "raid1"; - type = "mdraid"; + format = "xfs"; + mountOptions = [ "noatime" ]; + mountpoint = "/mnt/mass-storage"; + type = "filesystem"; }; size = "100%"; }; + + type = "gpt"; }; - type = "gpt"; + device = "/dev/sdc"; + type = "disk"; }; - - device = "/dev/sdb"; - type = "disk"; }; mdadm = { @@ -95,24 +117,5 @@ }; }; - mass-storage = { - content = { - partitions.main = { - content = { - format = "xfs"; - mountOptions = [ "noatime" ]; - mountpoint = "/mnt/mass-storage"; - type = "filesystem"; - }; - - size = "100%"; - }; - - type = "gpt"; - }; - - device = "/dev/sdc"; - type = "disk"; - }; }; } |
