stockholm/makefu/2configs/tinc/retiolum.nix

18 lines
543 B
Nix
Raw Normal View History

{ pkgs, lib, config, ... }:
2016-07-20 18:09:47 +00:00
{
imports = [
../binary-cache/lass.nix
];
2016-07-20 18:09:47 +00:00
krebs.tinc.retiolum.enable = true;
krebs.tinc.retiolum.extraConfig = ''
StrictSubnets = yes
${lib.optionalString (config.krebs.build.host.nets.retiolum.via != null) ''
LocalDiscovery = no
''}
'';
2018-09-16 23:11:57 +00:00
environment.systemPackages = [ pkgs.tinc ];
2018-12-13 00:34:15 +00:00
networking.firewall.allowedTCPPorts = [ config.krebs.build.host.nets.retiolum.tinc.port ];
networking.firewall.allowedUDPPorts = [ config.krebs.build.host.nets.retiolum.tinc.port ];
2016-07-20 18:09:47 +00:00
}