From c718010a694a935de217608dc0ad7612f2401a11 Mon Sep 17 00:00:00 2001 From: WayneBennett666 Date: Tue, 2 Jun 2026 12:03:00 +1000 Subject: [PATCH] added tftp server --- hosts/pxe-boot/configuration.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/hosts/pxe-boot/configuration.nix b/hosts/pxe-boot/configuration.nix index dee9a7c..f4927b9 100644 --- a/hosts/pxe-boot/configuration.nix +++ b/hosts/pxe-boot/configuration.nix @@ -62,6 +62,16 @@ in }; }; + # TFTP is only used to deliver the initial iPXE bootloader. After iPXE + # starts, all further assets are fetched via nginx over HTTP from /srv/pxe. + services.atftpd = { + enable = true; + root = "${pxeRoot}/boot"; + extraOptions = [ + "--verbose=5" + ]; + }; + systemd.tmpfiles.rules = [ "d ${pxeRoot} 0755 root root -" "d ${pxeRoot}/boot 0755 root root -" @@ -76,6 +86,7 @@ in services.openssh.settings.PermitRootLogin = "yes"; networking.firewall.allowedTCPPorts = [ 80 ]; + networking.firewall.allowedUDPPorts = [ 69 ]; system.stateVersion = "25.05"; }