nix: add real cpx22 hardware config from nixos-infect (server 134487234)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
autonomic-bot
2026-05-31 02:30:29 +00:00
parent 17951b899e
commit c44b967019

View File

@ -1,21 +1,16 @@
# PLACEHOLDER — replace with the output of:
# ssh root@<server_ipv4> '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"; };
}