aboutsummaryrefslogtreecommitdiff
path: root/hosts
diff options
context:
space:
mode:
authorRosa <rosaontheweb@proton.me>2026-03-27 15:01:35 -0400
committerRosa <rosaontheweb@proton.me>2026-03-27 15:01:35 -0400
commitb2328e74cca0151fdbaac48d0e5f750e12fbc97f (patch)
tree5057b22a2673866a43e0f387fff81187aced5a46 /hosts
parent26a16a10c8500c51d251ba21204a8144c8072fb4 (diff)
start configuring home server
Diffstat (limited to 'hosts')
-rw-r--r--hosts/canadian-government-system/default.nix9
-rw-r--r--hosts/canadian-government-system/disks.nix118
2 files changed, 127 insertions, 0 deletions
diff --git a/hosts/canadian-government-system/default.nix b/hosts/canadian-government-system/default.nix
new file mode 100644
index 0000000..4eb8bd6
--- /dev/null
+++ b/hosts/canadian-government-system/default.nix
@@ -0,0 +1,9 @@
+{ config, ... }:
+{
+ imports = [ ./disks.nix ];
+ networking.domain = "eviltransgenders.club";
+ security.doas.enable = true;
+ services.openssh.enable = true;
+ system.stateVersion = "26.05";
+ users.users.rosa.enable = true;
+}
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";
+ };
+ };
+}