nixos-config/2configs/iodined.nix

20 lines
393 B
Nix
Raw Normal View History

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