nixos-config/machines/probe/hardware-configuration/hetzner.nix
Ingolf Wagner d5f1ef4af6
All checks were successful
Build all NixOS Configurations / nix build (push) Successful in 7m44s
extract nixos.boot.ssh and set up probe
2024-08-07 21:39:32 +02:00

23 lines
592 B
Nix

{ config, ... }:
{
# set up hetzner cloud network
systemd.network.enable = true;
systemd.network.networks."10-hetzner" = {
matchConfig.Name = "en*";
networkConfig.DHCP = "ipv4";
linkConfig.RequiredForOnline = "routable";
};
# set up hetzner cloud network during init
boot.initrd.systemd.network.networks."10-hetzner" = config.systemd.network.networks."10-hetzner";
boot.initrd.availableKernelModules = [ "virtio_pci" ]; # network kernel module
# set up hetzner boot loader
boot.loader.grub = {
efiSupport = true;
efiInstallAsRemovable = true;
};
}