1 { config, lib, pkgs, ... }:
11 services.tftpd.enable = mkOption {
14 description = lib.mdDoc ''
15 Whether to enable tftpd, a Trivial File Transfer Protocol server.
16 The server will be run as an xinetd service.
20 services.tftpd.path = mkOption {
22 default = "/srv/tftp";
23 description = lib.mdDoc ''
24 Where the tftp server files are stored.
33 config = mkIf config.services.tftpd.enable {
35 services.xinetd.enable = true;
37 services.xinetd.services = singleton
40 server = "${pkgs.netkittftp}/sbin/in.tftpd";
41 serverArgs = "${config.services.tftpd.path}";