From 1f15bf221b11e147ac50e93a010829a7eb0b3cf8 Mon Sep 17 00:00:00 2001 From: Asmir A Date: Mon, 2 Sep 2024 22:59:00 +0200 Subject: [PATCH] magpie/initrd: fix networking with systemd-enabled initrd --- magpie/configuration.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/magpie/configuration.nix b/magpie/configuration.nix index dd8c1dc..0b77263 100644 --- a/magpie/configuration.nix +++ b/magpie/configuration.nix @@ -21,18 +21,18 @@ boot.loader.systemd-boot.configurationLimit = 2; boot.loader.efi.canTouchEfiVariables = true; boot.kernelPackages = pkgs.linuxPackages_latest; + boot.kernelParams = ["ip=dhcp"]; boot.kernel.sysctl = { "net.core.default_qdisc" = "fq"; "net.ipv4.tcp_congestion_control" = "bbr"; }; boot.initrd = { - systemd.enable = true; compressor = "zstd"; availableKernelModules = ["virtio-pci"]; + systemd.enable = true; network = { enable = true; - udhcpc.enable = true; ssh = { enable = true; hostKeys = [/etc/ssh_dummy_ed25519_key];