From 20490c08538122b77142a9af7569b42371ffc3b8 Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Sat, 28 Oct 2023 20:32:40 +0000 Subject: [PATCH] swann: enable TFTP and HTTP for phone booting --- ops/nixos/swann/default.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/ops/nixos/swann/default.nix b/ops/nixos/swann/default.nix index 50cd81439c..fc208a03aa 100644 --- a/ops/nixos/swann/default.nix +++ b/ops/nixos/swann/default.nix @@ -551,6 +551,8 @@ in { allowedUDPPorts = [ 3478 10001 # Unifi 53 # DNS + 69 # TFTP + 80 # HTTP ]; }; interfaces.vl-eduroam = { @@ -853,6 +855,14 @@ in { ''; }; + services.atftpd = { + enable = true; + }; + services.nginx = { + enable = true; + virtualHosts."192.168.1.1".root = "/srv/tftp"; + }; + services.kea = { dhcp4.enable = true; dhcp4.settings = { @@ -879,6 +889,14 @@ in { hw-address = "9c:93:4e:ad:1f:7b"; ip-address = "192.168.1.51"; hostname = "printer-xerox"; + } { + hw-address = "e8:ed:f3:6a:b9:24"; + ip-address = "192.168.1.52"; + hostname = "phone-lukegb-desk"; + option-data = [{ + name = "tftp-server-name"; + data = "192.168.1.1"; + }]; } { hw-address = "bc:33:29:26:01:5c"; ip-address = "92.118.30.18";