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
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }:
{
# Good defaults for cloud VMs
imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
imports =
[ (modulesPath + "/profiles/qemu-guest.nix")
];
# Placeholder root FS (you MUST replace this on real machines)
fileSystems."/" = {
device = "/dev/disk/by-label/nixos";
fsType = "ext4";
};
boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "sr_mod" "virtio_blk" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
# Placeholder bootloader target (adjust /dev/vda vs /dev/sda depending on provider)
boot.loader.grub.enable = true;
boot.loader.grub.devices = [ "/dev/vda" ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/1fbb884a-7224-47c1-9bc2-aba5f583ad63";
fsType = "ext4";
};
networking.useDHCP = lib.mkDefault true;
swapDevices =
[ { device = "/dev/disk/by-uuid/1ab7a8b0-589d-4892-8cb6-47b0125e4085"; }
];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
}