Now that unstable has switched to systemd based initrd I am updating my config however I can’t seem to connect to the network.
This is what I have configured so far
boot = {
loader.systemd-boot.enable = true;
initrd = {
availableKernelModules = ["r8169"];
network = {
enable = true;
ssh = {
enable = true;
hostKeys = [my-host-key];
authorizedKeys = map (key: ''command="systemctl default" ${key}'') my-public-keys;
};
};
systemd = {
network = {
wait-online = {
enable = true;
anyInterface = true;
};
networks."10-default" = {
matchConfig.name = "en*";
networkConfig.DHCP = "ipv4";
};
};
services.systemd-networkd.enable = true; # added this to try get it to work, can probably be removed
};
};
};
Does anyone know where I am going wrong? I use networkmanager after the system boots so I am not sure if my systemd.network settings are correct.