magpie/initrd: fix networking with systemd-enabled initrd

This commit is contained in:
Asmir A 2024-09-02 22:59:00 +02:00
parent 908c352932
commit 1f15bf221b
Signed by: asmir
GPG Key ID: 020C42B7A9ABA3E2

View File

@ -21,18 +21,18 @@
boot.loader.systemd-boot.configurationLimit = 2; boot.loader.systemd-boot.configurationLimit = 2;
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;
boot.kernelPackages = pkgs.linuxPackages_latest; boot.kernelPackages = pkgs.linuxPackages_latest;
boot.kernelParams = ["ip=dhcp"];
boot.kernel.sysctl = { boot.kernel.sysctl = {
"net.core.default_qdisc" = "fq"; "net.core.default_qdisc" = "fq";
"net.ipv4.tcp_congestion_control" = "bbr"; "net.ipv4.tcp_congestion_control" = "bbr";
}; };
boot.initrd = { boot.initrd = {
systemd.enable = true;
compressor = "zstd"; compressor = "zstd";
availableKernelModules = ["virtio-pci"]; availableKernelModules = ["virtio-pci"];
systemd.enable = true;
network = { network = {
enable = true; enable = true;
udhcpc.enable = true;
ssh = { ssh = {
enable = true; enable = true;
hostKeys = [/etc/ssh_dummy_ed25519_key]; hostKeys = [/etc/ssh_dummy_ed25519_key];