2015-10-28 14:06:41 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
let
|
|
|
|
external-ip = head config.krebs.build.host.nets.internet.addrs4;
|
|
|
|
internal-ip = head config.krebs.build.host.nets.retiolum.addrs4;
|
|
|
|
in {
|
|
|
|
imports = [
|
|
|
|
# TODO: copy this config or move to krebs
|
|
|
|
../2configs/tinc-basic-retiolum.nix
|
|
|
|
../2configs/headless.nix
|
|
|
|
# ../2configs/iodined.nix
|
|
|
|
|
|
|
|
# Reaktor
|
|
|
|
../2configs/Reaktor/simpleExtend.nix
|
|
|
|
];
|
|
|
|
|
2015-11-06 22:54:27 +00:00
|
|
|
krebs.build.host = config.krebs.hosts.gum;
|
2015-10-28 14:06:41 +00:00
|
|
|
|
|
|
|
krebs.Reaktor.enable = true;
|
|
|
|
|
|
|
|
# prepare graphs
|
|
|
|
krebs.nginx.enable = true;
|
|
|
|
|
|
|
|
networking = {
|
|
|
|
firewall.allowPing = true;
|
|
|
|
firewall.allowedTCPPorts = [ 80 443 655 ];
|
|
|
|
firewall.allowedUDPPorts = [ 655 ];
|
|
|
|
interfaces.enp2s1.ip4 = [{
|
|
|
|
address = external-ip;
|
|
|
|
prefixLength = 24;
|
|
|
|
}];
|
|
|
|
defaultGateway = "195.154.108.1";
|
|
|
|
nameservers = [ "8.8.8.8" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
# based on ../../tv/2configs/CAC-Developer-2.nix
|
|
|
|
}
|