From f94c5fe631349ec06285bfc2a6a2dfce3a8faa65 Mon Sep 17 00:00:00 2001 From: chn Date: Mon, 26 Aug 2024 12:37:14 +0800 Subject: [PATCH] system.initrd: enable ipv6 --- modules/system/initrd.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/system/initrd.nix b/modules/system/initrd.nix index 02d8e216..317f35e4 100644 --- a/modules/system/initrd.nix +++ b/modules/system/initrd.nix @@ -33,7 +33,8 @@ inputs: # resolved does not work in initrd, causing network.target to fail services.resolved.enable = false; }; - kernelParams = [ "ip=dhcp" ]; + # ip=dhcp only attain ipv4 + kernelParams = [ "ip=on" ]; }; } )