Add real netcup staging hardware configuration
This commit is contained in:
parent
b97ce7e4f1
commit
8c1d4baeda
2 changed files with 26 additions and 12 deletions
5
.gitignore
vendored
Normal file
5
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
|
||||||
|
result
|
||||||
|
*.qcow2
|
||||||
|
configuration-staging-bootstrap.nix
|
||||||
|
hosts/staging/hardware-configuration.nix.before-netcup
|
||||||
|
|
@ -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 =
|
||||||
imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
|
[ (modulesPath + "/profiles/qemu-guest.nix")
|
||||||
|
];
|
||||||
|
|
||||||
# Placeholder root FS (you MUST replace this on real machines)
|
boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "sr_mod" "virtio_blk" ];
|
||||||
fileSystems."/" = {
|
boot.initrd.kernelModules = [ ];
|
||||||
device = "/dev/disk/by-label/nixos";
|
boot.kernelModules = [ ];
|
||||||
fsType = "ext4";
|
boot.extraModulePackages = [ ];
|
||||||
};
|
|
||||||
|
|
||||||
# Placeholder bootloader target (adjust /dev/vda vs /dev/sda depending on provider)
|
fileSystems."/" =
|
||||||
boot.loader.grub.enable = true;
|
{ device = "/dev/disk/by-uuid/1fbb884a-7224-47c1-9bc2-aba5f583ad63";
|
||||||
boot.loader.grub.devices = [ "/dev/vda" ];
|
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";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue