stockholm/lass/2configs/privoxy-retiolum.nix
lassulus 02eb997d3e lass 2 configs: add privoxy configs
lass 2: retiolum_privoxy -> privoxy-retiolum
2015-10-04 13:36:52 +02:00

22 lines
373 B
Nix

{ config, lib, ... }:
let
r_ip = (head config.krebs.build.host.nets.retiolum.addrs4);
inherit (lib) head;
in {
imports = [
./privoxy.nix
];
services.privoxy.listenAddress = "${r_ip}:8118";
krebs.iptables = {
tables = {
filter.INPUT.rules = [
{ predicate = "-i retiolum -p tcp --dport 8118"; target = "ACCEPT"; }
];
};
};
}