nixos-config/machines/probe/hardware-configuration/hetzner.nix
2024-08-07 21:37:55 +02:00

18 lines
400 B
Nix

{config, ... }:
{
systemd.network.enable = true;
systemd.network.networks."10-hetzner" = {
matchConfig.Name = "e*";
networkConfig.DHCP = "ipv4";
linkConfig.RequiredForOnline = "routable";
};
boot.initrd.systemd.network.networks."10-hetzner" = config.systemd.network.networks."10-hetzner";
boot.loader.grub = {
efiSupport = true;
efiInstallAsRemovable = true;
};
}