From d5498c2e2e29306f5e297f56652d2d9d571c674b Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 13 Mar 2022 11:35:46 +0100 Subject: ... --- hosts/vidhar/network/default.nix | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'hosts/vidhar') diff --git a/hosts/vidhar/network/default.nix b/hosts/vidhar/network/default.nix index ab79dd16..7f04dfde 100644 --- a/hosts/vidhar/network/default.nix +++ b/hosts/vidhar/network/default.nix @@ -81,13 +81,17 @@ { name = "uefi-64"; test = "substring(option[60].hex,0,20) == 'PXEClient:Arch:00007' or substring(option[60].hex,0,20) == 'PXEClient:Arch:00008' or substring(option[60].hex,0,20) == 'PXEClient:Arch:00009'"; only-if-required = true; - tftp-server-name = "10.141.0.1"; + option-data = [ + { name = "tftp-server-name"; data = "10.141.0.1"; } + ]; boot-file-name = "ipxe.efi"; } { name = "legacy"; test = "substring(option[60].hex,0,20) == 'PXEClient:Arch:00000'"; only-if-required = true; - tftp-server-name = "10.141.0.1"; + option-data = [ + { name = "tftp-server-name"; data = "10.141.0.1"; } + ]; boot-file-name = "undionly.kpxe"; } ]; @@ -194,7 +198,7 @@ ${installerBuild.netbootIpxeScript}/netboot.ipxe \ ${pkgs.ipxe}/ipxe.efi ${pkgs.ipxe}/undionly.kpxe ''; - in "${pkgs.atftp} --daemon --no-fork --bind-address=10.141.0.1 ${tftpRoot}"; + in "${pkgs.atftp}/sbin/atftpd --daemon --no-fork --bind-address=10.141.0.1 ${tftpRoot}"; }; }; } -- cgit v1.2.3