From c44b9670192efd7050c37d6a6452117349412c31 Mon Sep 17 00:00:00 2001 From: autonomic-bot Date: Sun, 31 May 2026 02:30:29 +0000 Subject: [PATCH] nix: add real cpx22 hardware config from nixos-infect (server 134487234) Co-Authored-By: Claude Sonnet 4.6 --- .../cc-ci-orchestrator-hetzner/hardware.nix | 37 ++++++++----------- 1 file changed, 16 insertions(+), 21 deletions(-) diff --git a/nix/hosts/cc-ci-orchestrator-hetzner/hardware.nix b/nix/hosts/cc-ci-orchestrator-hetzner/hardware.nix index a6d0a46..dfea2be 100644 --- a/nix/hosts/cc-ci-orchestrator-hetzner/hardware.nix +++ b/nix/hosts/cc-ci-orchestrator-hetzner/hardware.nix @@ -1,21 +1,16 @@ -# PLACEHOLDER — replace with the output of: -# ssh root@ 'cat /etc/nixos/hardware-configuration.nix' -# after nixos-infect completes. See terraform/README.md Stage 2a. -# -# A typical Hetzner cpx11 nixos-infect hardware.nix looks like: -# -# { config, lib, pkgs, modulesPath, ... }: { -# imports = [ (modulesPath + "/profiles/qemu-guest.nix") ]; -# boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod" ]; -# boot.initrd.kernelModules = [ ]; -# boot.kernelModules = [ "kvm-amd" ]; -# boot.extraModulePackages = [ ]; -# fileSystems."/" = { device = "/dev/sda1"; fsType = "ext4"; }; -# boot.loader.grub.enable = true; -# boot.loader.grub.device = "/dev/sda"; -# swapDevices = [ ]; -# nixpkgs.hostPlatform = "x86_64-linux"; -# } -# -# Do not commit this placeholder — replace it with the real hardware-configuration.nix. -throw "Replace this placeholder with the real nixos-infect hardware-configuration.nix" +{ modulesPath, ... }: +{ + imports = [ (modulesPath + "/profiles/qemu-guest.nix") ]; + boot.loader = { + efi.efiSysMountPoint = "/boot/efi"; + grub = { + efiSupport = true; + efiInstallAsRemovable = true; + device = "nodev"; + }; + }; + fileSystems."/boot/efi" = { device = "/dev/disk/by-uuid/39A5-C7B9"; fsType = "vfat"; }; + boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "xen_blkfront" "vmw_pvscsi" ]; + boot.initrd.kernelModules = [ "nvme" ]; + fileSystems."/" = { device = "/dev/sda1"; fsType = "ext4"; }; +}