forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'NixOS:master' into master
- Loading branch information
Showing
768 changed files
with
73,693 additions
and
54,121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6453,6 +6453,12 @@ | |
name = "Edward Kimber"; | ||
githubId = 99987; | ||
}; | ||
eklairs = { | ||
name = "Eklairs"; | ||
email = "[email protected]"; | ||
github = "eklairs"; | ||
githubId = 142717667; | ||
}; | ||
ekleog = { | ||
email = "[email protected]"; | ||
matrix = "@leo:gaspard.ninja"; | ||
|
@@ -11184,6 +11190,14 @@ | |
githubId = 3267697; | ||
name = "Joshua Potter"; | ||
}; | ||
js6pak = { | ||
name = "js6pak"; | ||
email = "[email protected]"; | ||
matrix = "@6pak:matrix.org"; | ||
github = "js6pak"; | ||
githubId = 35262707; | ||
keys = [ { fingerprint = "66D1 1EA6 571D E4F9 16B3 B8EB 3E3C D91E B1AA FB06"; } ]; | ||
}; | ||
jshcmpbll = { | ||
email = "[email protected]"; | ||
github = "jshcmpbll"; | ||
|
@@ -12012,6 +12026,11 @@ | |
github = "kmicklas"; | ||
githubId = 929096; | ||
}; | ||
kmogged = { | ||
name = "Kevin"; | ||
github = "kmogged"; | ||
githubId = 22965352; | ||
}; | ||
knairda = { | ||
email = "[email protected]"; | ||
name = "Adrian Kummerlaender"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,38 @@ | ||
{ config, lib, pkgs, ... }: | ||
|
||
with lib; | ||
|
||
{ | ||
config, | ||
lib, | ||
pkgs, | ||
... | ||
}: | ||
|
||
###### interface | ||
|
||
{ | ||
options = { | ||
|
||
services.tftpd.enable = mkOption { | ||
type = types.bool; | ||
services.tftpd.enable = lib.mkOption { | ||
type = lib.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; | ||
services.tftpd.path = lib.mkOption { | ||
type = lib.types.path; | ||
default = "/srv/tftp"; | ||
description = '' | ||
Where the tftp server files are stored. | ||
''; | ||
}; | ||
|
||
}; | ||
|
||
|
||
###### implementation | ||
|
||
config = mkIf config.services.tftpd.enable { | ||
|
||
config = lib.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}"; | ||
}; | ||
|
||
services.xinetd.services = lib.singleton { | ||
name = "tftp"; | ||
protocol = "udp"; | ||
server = "${pkgs.netkittftp}/sbin/in.tftpd"; | ||
serverArgs = "${config.services.tftpd.path}"; | ||
}; | ||
}; | ||
|
||
} |
Oops, something went wrong.