18 lines
400 B
Nix
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;
|
|
};
|
|
|
|
}
|