2016-02-28 00:52:40 +00:00
|
|
|
{ pkgs, config, ... }:
|
2015-10-19 21:46:10 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
# TODO: make this a parameter
|
|
|
|
domain = "io.krebsco.de";
|
|
|
|
pw = import <secrets/iodinepw.nix>;
|
|
|
|
in {
|
2016-10-19 10:31:13 +00:00
|
|
|
networking.firewall.allowedUDPPorts = [ 53 ];
|
2015-10-19 21:46:10 +00:00
|
|
|
|
2016-10-19 10:31:13 +00:00
|
|
|
services.iodine = {
|
2016-09-02 10:41:56 +00:00
|
|
|
server = {
|
|
|
|
enable = true;
|
|
|
|
domain = domain;
|
|
|
|
ip = "172.16.10.1/24";
|
2017-07-15 20:46:11 +00:00
|
|
|
extraConfig = "-c -P ${pw} -l ${config.krebs.build.host.nets.internet.ip4.addr}";
|
2016-09-02 10:41:56 +00:00
|
|
|
};
|
2015-10-19 21:46:10 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|