stockholm/makefu/1systems/wry/config.nix

55 lines
1.4 KiB
Nix
Raw Normal View History

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