From 23fe66b07669a4c76784009dbba0d7ddeb52fba8 Mon Sep 17 00:00:00 2001 From: Rosa Date: Mon, 30 Mar 2026 11:05:00 -0400 Subject: Revert "the dream is dead" This reverts commit 32b32bd3a815e11aa8f7e3279a638940754b6a23. --- .gitignore | 1 - flake.nix | 5 + hosts/canadian-government-system/default.nix | 15 +++ hosts/canadian-government-system/disks.nix | 118 +++++++++++++++++++++ .../hardware-configuration.nix | 18 ++++ 5 files changed, 156 insertions(+), 1 deletion(-) create mode 100644 hosts/canadian-government-system/default.nix create mode 100644 hosts/canadian-government-system/disks.nix create mode 100644 hosts/canadian-government-system/hardware-configuration.nix diff --git a/.gitignore b/.gitignore index b91777e..7ad6275 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1 @@ /.direnv -/result diff --git a/flake.nix b/flake.nix index 5f9a821..09483c6 100644 --- a/flake.nix +++ b/flake.nix @@ -62,6 +62,11 @@ hostName = "meowbook"; }; + + canadian-government-system = mkSystem { + additionalModules = [ disko.nixosModules.disko ]; + hostName = "canadian-government-system"; + }; }; }; } diff --git a/hosts/canadian-government-system/default.nix b/hosts/canadian-government-system/default.nix new file mode 100644 index 0000000..3086ec9 --- /dev/null +++ b/hosts/canadian-government-system/default.nix @@ -0,0 +1,15 @@ +{ config, ... }: +{ + imports = [ ./disks.nix ]; + networking.domain = "eviltransgenders.club"; + security.doas.enable = true; + services.openssh.enable = true; + system.stateVersion = "26.05"; + users.users = { + root.openssh.authorizedKeys.keys = [ + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICcEZBikGjnGveif3TsfBkWCl1Qrw0yZoOAn/LxS8oAa rosa@lust" + ]; + + 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"; + }; + }; +} diff --git a/hosts/canadian-government-system/hardware-configuration.nix b/hosts/canadian-government-system/hardware-configuration.nix new file mode 100644 index 0000000..88db163 --- /dev/null +++ b/hosts/canadian-government-system/hardware-configuration.nix @@ -0,0 +1,18 @@ +{ + config, + lib, + modulesPath, + pkgs, + ... +}: +{ + imports = [ (modulesPath + "/installer/scan/not-detected.nix") ]; + boot.initrd.availableKernelModules = [ + "xhci_pci" + "ahci" + "usbhid" + "sd_mod" + ]; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; +} -- cgit v1.3.1