summaryrefslogtreecommitdiffstats
path: root/mb/2configs/retiolum.nix
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2019-04-28 13:46:00 +0200
committerlassulus <lassulus@lassul.us>2019-04-28 13:46:00 +0200
commit2f8a55268c75142a19a58fe3752d197077a223b4 (patch)
treee2df9faec64cfbfdc2d57a653b6e928fb2ee81b4 /mb/2configs/retiolum.nix
parentc483c69ba183772bfd2e5a2972bfd7cbc550fba3 (diff)
parent3dc61a8f2d525f7f6c1260ca97a918f78242cb1c (diff)
Merge branch 'mb'
Diffstat (limited to 'mb/2configs/retiolum.nix')
-rw-r--r--mb/2configs/retiolum.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/mb/2configs/retiolum.nix b/mb/2configs/retiolum.nix
new file mode 100644
index 000000000..5a87d52af
--- /dev/null
+++ b/mb/2configs/retiolum.nix
@@ -0,0 +1,33 @@
+{ config, pkgs, ... }:
+
+{
+
+ krebs.iptables = {
+ tables = {
+ 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 = {
+ enableLegacy = true;
+ enable = true;
+ connectTo = [
+ "prism"
+ "gum"
+ "ni"
+ ];
+ };
+
+ nixpkgs.config.packageOverrides = pkgs: {
+ tinc = pkgs.tinc_pre;
+ };
+
+ environment.systemPackages = [
+ pkgs.tinc
+ ];
+}