uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
46
nixos/modules/services/networking/tftpd.nix
Normal file
46
nixos/modules/services/networking/tftpd.nix
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
{
|
||||
|
||||
###### interface
|
||||
|
||||
options = {
|
||||
|
||||
services.tftpd.enable = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = ''
|
||||
Whether to enable tftpd, a Trivial File Transfer Protocol server.
|
||||
The server will be run as an xinetd service.
|
||||
'';
|
||||
};
|
||||
|
||||
services.tftpd.path = mkOption {
|
||||
type = types.path;
|
||||
default = "/srv/tftp";
|
||||
description = ''
|
||||
Where the tftp server files are stored.
|
||||
'';
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
|
||||
###### implementation
|
||||
|
||||
config = mkIf config.services.tftpd.enable {
|
||||
|
||||
services.xinetd.enable = true;
|
||||
|
||||
services.xinetd.services = singleton
|
||||
{ name = "tftp";
|
||||
protocol = "udp";
|
||||
server = "${pkgs.netkittftp}/sbin/in.tftpd";
|
||||
serverArgs = "${config.services.tftpd.path}";
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue