diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2022-03-13 11:35:46 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2022-03-13 11:35:46 +0100 |
commit | d5498c2e2e29306f5e297f56652d2d9d571c674b (patch) | |
tree | 3b7ac1745755c4469f65a91f8c3fa3a627f23152 /hosts/vidhar | |
parent | e1a45d9b79a1deb02a5df2806f1825fb112f9448 (diff) | |
download | nixos-d5498c2e2e29306f5e297f56652d2d9d571c674b.tar nixos-d5498c2e2e29306f5e297f56652d2d9d571c674b.tar.gz nixos-d5498c2e2e29306f5e297f56652d2d9d571c674b.tar.bz2 nixos-d5498c2e2e29306f5e297f56652d2d9d571c674b.tar.xz nixos-d5498c2e2e29306f5e297f56652d2d9d571c674b.zip |
...
Diffstat (limited to 'hosts/vidhar')
-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 | } |