nixos-config/2configs/tinc/retiolum.nix

23 lines
741 B
Nix
Raw Normal View History

{ pkgs, lib, config, ... }:
2016-07-20 20:09:47 +02:00
{
imports = [
../binary-cache/lass.nix
];
krebs.tinc.retiolum = {
enable = true;
extraConfig = ''
StrictSubnets = yes
${lib.optionalString (config.krebs.build.host.nets.retiolum.via != null) ''
LocalDiscovery = no
''}
'';
privkey = config.sops.secrets."${config.clanCore.machineName}-retiolum.rsa_key.priv".path;
privkey_ed25519 = config.sops.secrets."${config.clanCore.machineName}-retiolum.ed25519_key.priv".path;
};
2018-09-17 01:11:57 +02:00
environment.systemPackages = [ pkgs.tinc ];
2018-12-13 01:34:15 +01: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 20:09:47 +02:00
}