nixos-config/2configs/iodined.nix

20 lines
404 B
Nix
Raw Normal View History

{ pkgs, config, ... }:
2023-09-03 14:25:26 +02:00
{
2016-10-19 12:31:13 +02:00
networking.firewall.allowedUDPPorts = [ 53 ];
2023-09-03 14:25:26 +02:00
sops.secrets."iodinepw" = {
owner = "iodined";
};
2016-10-19 12:31:13 +02:00
services.iodine = {
2016-09-02 12:41:56 +02:00
server = {
enable = true;
2023-09-03 14:25:26 +02:00
domain = "io.krebsco.de";
2016-09-02 12:41:56 +02:00
ip = "172.16.10.1/24";
2023-09-03 14:25:26 +02:00
passwordFile = config.sops.secrets."iodinepw".path;
extraConfig = "-c -l ${config.krebs.build.host.nets.internet.ip4.addr}";
2016-09-02 12:41:56 +02:00
};
};
}