aboutsummaryrefslogtreecommitdiff
path: root/hosts/canadian-government-system/disks.nix
diff options
context:
space:
mode:
authorRosa <rosaontheweb@proton.me>2026-03-30 11:05:00 -0400
committerRosa <rosaontheweb@proton.me>2026-03-30 11:05:00 -0400
commit23fe66b07669a4c76784009dbba0d7ddeb52fba8 (patch)
tree7d136befc1dd7af8ce71725dc203764a0ed8fb04 /hosts/canadian-government-system/disks.nix
parentf6d82626548c87946dc1ef19f9d6a594004b8f4c (diff)
Revert "the dream is dead"
This reverts commit 32b32bd3a815e11aa8f7e3279a638940754b6a23.
Diffstat (limited to 'hosts/canadian-government-system/disks.nix')
-rw-r--r--hosts/canadian-government-system/disks.nix118
1 files changed, 118 insertions, 0 deletions
diff --git a/hosts/canadian-government-system/disks.nix b/hosts/canadian-government-system/disks.nix
new file mode 100644
index 0000000..01a23e7
--- /dev/null
+++ b/hosts/canadian-government-system/disks.nix
@@ -0,0 +1,118 @@
+{
+ disko.devices.disk = {
+ boot1 = {
+ content = {
+ partitions = {
+ boot = {
+ content = {
+ name = "boot";
+ type = "mdraid";
+ };
+
+ size = "500M";
+ type = "EF00";
+ };
+
+ root = {
+ content = {
+ name = "raid1";
+ type = "mdraid";
+ };
+
+ size = "100%";
+ };
+ };
+
+ type = "gpt";
+ };
+
+ device = "/dev/sda";
+ type = "disk";
+ };
+
+ boot2 = {
+ content = {
+ partitions = {
+ boot = {
+ content = {
+ name = "boot";
+ type = "mdraid";
+ };
+
+ size = "500M";
+ type = "EF00";
+ };
+
+ root = {
+ content = {
+ name = "raid1";
+ type = "mdraid";
+ };
+
+ size = "100%";
+ };
+ };
+
+ type = "gpt";
+ };
+
+ device = "/dev/sdb";
+ type = "disk";
+ };
+
+ mdadm = {
+ boot = {
+ content = {
+ format = "vfat";
+ mountOptions = [ "umask=0077" ];
+ mountpoint = "/boot";
+ type = "filesystem";
+ };
+
+ level = 1;
+ metadata = "1.0";
+ type = "mdadm";
+ };
+
+ raid1 = {
+ content = {
+ partitions.primary = {
+ content = {
+ format = "xfs";
+ mountOptions = [ "noatime" ];
+ mountpoint = "/";
+ type = "filesystem";
+ };
+
+ size = "100%";
+ };
+
+ type = "gpt";
+ };
+
+ level = 1;
+ type = "mdadm";
+ };
+ };
+
+ 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";
+ };
+ };
+}