diff options
Diffstat (limited to 'hosts/vidhar/network/default.nix')
-rw-r--r-- | hosts/vidhar/network/default.nix | 10 |
1 files changed, 7 insertions, 3 deletions
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 @@ | |||
81 | { name = "uefi-64"; | 81 | { name = "uefi-64"; |
82 | 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'"; | 82 | 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'"; |
83 | only-if-required = true; | 83 | only-if-required = true; |
84 | tftp-server-name = "10.141.0.1"; | 84 | option-data = [ |
85 | { name = "tftp-server-name"; data = "10.141.0.1"; } | ||
86 | ]; | ||
85 | boot-file-name = "ipxe.efi"; | 87 | boot-file-name = "ipxe.efi"; |
86 | } | 88 | } |
87 | { name = "legacy"; | 89 | { name = "legacy"; |
88 | test = "substring(option[60].hex,0,20) == 'PXEClient:Arch:00000'"; | 90 | test = "substring(option[60].hex,0,20) == 'PXEClient:Arch:00000'"; |
89 | only-if-required = true; | 91 | only-if-required = true; |
90 | tftp-server-name = "10.141.0.1"; | 92 | option-data = [ |
93 | { name = "tftp-server-name"; data = "10.141.0.1"; } | ||
94 | ]; | ||
91 | boot-file-name = "undionly.kpxe"; | 95 | boot-file-name = "undionly.kpxe"; |
92 | } | 96 | } |
93 | ]; | 97 | ]; |
@@ -194,7 +198,7 @@ | |||
194 | ${installerBuild.netbootIpxeScript}/netboot.ipxe \ | 198 | ${installerBuild.netbootIpxeScript}/netboot.ipxe \ |
195 | ${pkgs.ipxe}/ipxe.efi ${pkgs.ipxe}/undionly.kpxe | 199 | ${pkgs.ipxe}/ipxe.efi ${pkgs.ipxe}/undionly.kpxe |
196 | ''; | 200 | ''; |
197 | in "${pkgs.atftp} --daemon --no-fork --bind-address=10.141.0.1 ${tftpRoot}"; | 201 | in "${pkgs.atftp}/sbin/atftpd --daemon --no-fork --bind-address=10.141.0.1 ${tftpRoot}"; |
198 | }; | 202 | }; |
199 | }; | 203 | }; |
200 | } | 204 | } |