summaryrefslogtreecommitdiffstats
path: root/lass/2configs/retiolum.nix
diff options
context:
space:
mode:
Diffstat (limited to 'lass/2configs/retiolum.nix')
-rw-r--r--lass/2configs/retiolum.nix55
1 files changed, 0 insertions, 55 deletions
diff --git a/lass/2configs/retiolum.nix b/lass/2configs/retiolum.nix
deleted file mode 100644
index c2828f6db..000000000
--- a/lass/2configs/retiolum.nix
+++ /dev/null
@@ -1,55 +0,0 @@
-{ config, lib, 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 = {
- enable = true;
- connectTo = [
- "prism"
- "ni"
- "eve"
- ];
- extraConfig = ''
- AutoConnect = no
- ${lib.optionalString (config.krebs.build.host.nets.retiolum.via != null) ''
- LocalDiscovery = no
- ''}
- '';
- tincUp = lib.mkIf config.systemd.network.enable "";
- };
-
- systemd.network.networks.retiolum = {
- matchConfig.Name = "retiolum";
- address = [
- "${config.krebs.build.host.nets.retiolum.ip4.addr}/16"
- "${config.krebs.build.host.nets.retiolum.ip6.addr}/16"
- ];
- linkConfig = {
- MTUBytes = "1377";
- RequiredForOnline = "no";
- };
- networkConfig = {
- IgnoreCarrierLoss = "10s";
- LinkLocalAddressing = "no";
- };
- };
-
- nixpkgs.config.packageOverrides = pkgs: {
- tinc = pkgs.tinc_pre;
- };
-
- environment.systemPackages = [
- pkgs.tinc
- ];
-}