Piotr Dobrowolski | a01905a | 2021-10-16 18:22:46 +0200 | [diff] [blame] | 1 | { config, pkgs, lib, ... }: |
| 2 | |
| 3 | { |
| 4 | services.tftpd.enable = true; |
| 5 | services.tftpd.path = pkgs.linkFarm "netboot" [ |
| 6 | { |
| 7 | name = "netboot.xyz.efi"; |
| 8 | path = pkgs.fetchurl { |
| 9 | url = "https://github.com/netbootxyz/netboot.xyz/releases/download/2.0.48/netboot.xyz.efi"; |
| 10 | sha256 = "1ch8ngryyr2abbrzpf0xb888a5d3rmnvfj8v0frfykhgs607666f"; |
| 11 | #3b2de54224963ee17857a9737b65d49edc423e06ad7e9c9b85d9f69ca923676a"; |
| 12 | }; |
| 13 | } |
| 14 | { |
| 15 | name = "netboot.xyz.kpxe"; |
| 16 | path = pkgs.fetchurl { |
| 17 | url = "https://github.com/netbootxyz/netboot.xyz/releases/download/2.0.48/netboot.xyz.kpxe"; |
| 18 | sha256 = "0p3qcdiialzbqjmiss6qay7qdz6b8mdsx5lk4hf75rlkwjh3yhax"; |
| 19 | }; |
| 20 | } |
| 21 | ]; |
| 22 | } |