2015-09-27 15:23:54 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
2016-10-20 20:54:38 +02:00
|
|
|
with import <stockholm/lib>;
|
2015-09-27 15:23:54 +02:00
|
|
|
let
|
|
|
|
|
2016-04-08 03:53:34 +02:00
|
|
|
external-ip = config.krebs.build.host.nets.internet.ip4.addr;
|
|
|
|
internal-ip = config.krebs.build.host.nets.retiolum.ip4.addr;
|
2015-09-27 15:23:54 +02:00
|
|
|
in {
|
|
|
|
imports = [
|
2016-02-15 16:27:11 +01:00
|
|
|
../.
|
2015-10-19 19:48:56 +02:00
|
|
|
# TODO: copy this config or move to krebs
|
2016-06-13 16:22:51 +02:00
|
|
|
../2configs/hw/CAC.nix
|
|
|
|
../2configs/fs/CAC-CentOS-7-64bit.nix
|
2016-06-23 16:57:36 +02:00
|
|
|
../2configs/save-diskspace.nix
|
2015-10-19 19:48:56 +02:00
|
|
|
|
2017-04-12 23:40:35 +02:00
|
|
|
# ../2configs/bepasty-dual.nix
|
2015-10-21 18:49:20 +02:00
|
|
|
|
2015-10-19 23:46:10 +02:00
|
|
|
../2configs/iodined.nix
|
2016-10-19 12:31:13 +02:00
|
|
|
../2configs/backup.nix
|
2015-10-28 21:31:07 +01:00
|
|
|
|
|
|
|
# other nginx
|
2016-12-24 23:41:33 +01:00
|
|
|
# ../2configs/nginx/euer.test.nix
|
2016-10-19 12:31:13 +02:00
|
|
|
|
2015-10-27 18:12:05 +01:00
|
|
|
# collectd
|
2017-01-10 11:34:44 +01:00
|
|
|
../2configs/logging/central-stats-client.nix
|
2017-02-08 18:37:15 +01:00
|
|
|
../2configs/logging/central-logging-client.nix
|
2016-07-20 17:18:57 +02:00
|
|
|
|
|
|
|
../2configs/tinc/retiolum.nix
|
2017-01-10 11:34:44 +01:00
|
|
|
# ../2configs/torrent.nix
|
2015-09-27 15:23:54 +02:00
|
|
|
];
|
2016-06-23 16:57:36 +02:00
|
|
|
|
2015-11-06 23:54:27 +01:00
|
|
|
krebs.build.host = config.krebs.hosts.wry;
|
2015-10-19 19:48:56 +02:00
|
|
|
|
2015-10-21 18:49:20 +02:00
|
|
|
# prepare graphs
|
2016-12-24 23:41:33 +01:00
|
|
|
services.nginx.enable = true;
|
2015-10-19 21:51:20 +02:00
|
|
|
krebs.retiolum-bootstrap.enable = true;
|
2015-11-06 23:54:27 +01:00
|
|
|
|
2015-10-21 18:49:20 +02:00
|
|
|
networking = {
|
2015-12-30 11:29:28 +01:00
|
|
|
firewall = {
|
2015-11-13 12:25:18 +01:00
|
|
|
allowPing = true;
|
|
|
|
logRefusedConnections = false;
|
|
|
|
allowedTCPPorts = [ 53 80 443 ];
|
2015-12-30 11:29:28 +01:00
|
|
|
allowedUDPPorts = [ 655 53 ];
|
2015-11-13 12:25:18 +01:00
|
|
|
};
|
2015-10-21 18:49:20 +02:00
|
|
|
interfaces.enp2s1.ip4 = [{
|
|
|
|
address = external-ip;
|
|
|
|
prefixLength = 24;
|
|
|
|
}];
|
|
|
|
defaultGateway = "104.233.87.1";
|
|
|
|
nameservers = [ "8.8.8.8" ];
|
2015-09-27 15:23:54 +02:00
|
|
|
};
|
|
|
|
|
2016-08-21 12:06:31 +02:00
|
|
|
environment.systemPackages = [ pkgs.screen ];
|
2015-09-27 15:23:54 +02:00
|
|
|
}
|