stockholm/lass/2configs/retiolum.nix

36 lines
649 B
Nix
Raw Normal View History

2017-09-19 09:51:22 +00:00
{ config, pkgs, ... }:
{
2015-10-01 20:13:40 +00:00
krebs.iptables = {
tables = {
2017-09-19 09:51:22 +00:00
filter.INPUT.rules = let
tincport = toString config.krebs.build.host.nets.retiolum.tinc.port;
in [
{ predicate = "-p tcp --dport ${tincport}"; target = "ACCEPT"; }
{ predicate = "-p udp --dport ${tincport}"; target = "ACCEPT"; }
];
};
};
krebs.tinc.retiolum = {
enable = true;
connectTo = [
"prism"
2015-08-20 14:09:24 +00:00
"gum"
"ni"
];
2019-05-29 13:40:44 +00:00
extraConfig = ''
LocalDiscovery = yes
'';
};
2016-03-15 13:00:55 +00:00
nixpkgs.config.packageOverrides = pkgs: {
tinc = pkgs.tinc_pre;
};
environment.systemPackages = [
pkgs.tinc
];
}