Add real netcup staging hardware configuration

This commit is contained in:
Eli Fadi 2026-03-17 19:37:32 +01:00
parent b97ce7e4f1
commit 8c1d4baeda
2 changed files with 26 additions and 12 deletions

5
.gitignore vendored Normal file
View file

@ -0,0 +1,5 @@
result
*.qcow2
configuration-staging-bootstrap.nix
hosts/staging/hardware-configuration.nix.before-netcup

View file

@ -1,17 +1,26 @@
{ config, lib, modulesPath, ... }: # Do not modify this file! It was generated by nixos-generate-config
{ # and may be overwritten by future invocations. Please make changes
# Good defaults for cloud VMs # to /etc/nixos/configuration.nix instead.
imports = [ (modulesPath + "/profiles/qemu-guest.nix") ]; { config, lib, pkgs, modulesPath, ... }:
# Placeholder root FS (you MUST replace this on real machines) {
fileSystems."/" = { imports =
device = "/dev/disk/by-label/nixos"; [ (modulesPath + "/profiles/qemu-guest.nix")
];
boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "sr_mod" "virtio_blk" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/1fbb884a-7224-47c1-9bc2-aba5f583ad63";
fsType = "ext4"; fsType = "ext4";
}; };
# Placeholder bootloader target (adjust /dev/vda vs /dev/sda depending on provider) swapDevices =
boot.loader.grub.enable = true; [ { device = "/dev/disk/by-uuid/1ab7a8b0-589d-4892-8cb6-47b0125e4085"; }
boot.loader.grub.devices = [ "/dev/vda" ]; ];
networking.useDHCP = lib.mkDefault true; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
} }