From 227b4c5fd4e0cf4bc66878c01076e1a1f8f9a5cf Mon Sep 17 00:00:00 2001 From: Lander Van den Bulcke Date: Tue, 4 Nov 2025 10:11:39 +0100 Subject: [PATCH] feat: add initrd network config Signed-off-by: Lander Van den Bulcke --- hosts/hyp-01/modules/networking.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/hosts/hyp-01/modules/networking.nix b/hosts/hyp-01/modules/networking.nix index ecfd10e..1c74e4a 100644 --- a/hosts/hyp-01/modules/networking.nix +++ b/hosts/hyp-01/modules/networking.nix @@ -44,6 +44,18 @@ boot.initrd.network = { enable = true; + + arguments = with config.networking.hyp-01; [ + "ip=${ipv4.address}::${ipv4.gateway}:255.255.255.192::eth0:off" + ]; + + ssh = { + enable = true; + port = 2222; + authorizedKeys = [ + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPnthKtz0fE4yQ/X10cJgKVCjYCNkRNoqV28xAhD7h2M cardno:22_498_026" + ]; + }; }; boot.initrd.kernelModules = [ "igb" ];