summaryrefslogtreecommitdiffstats
path: root/makefu/1systems/wry/config.nix
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2017-07-16 12:05:35 +0200
committerlassulus <lassulus@lassul.us>2017-07-16 12:05:35 +0200
commitcd7c0971ccc9023f63feb75d4abe514fdc03a079 (patch)
tree704c47afe8cd43a36f36f251cd53b340ec5ec4da /makefu/1systems/wry/config.nix
parentb91a4c4b0f0958cdc5e7c0d60523326083f275d4 (diff)
parent0e0ad14c373a038e6d347017f5efe172c7409793 (diff)
Merge remote-tracking branch 'gum/master'
Diffstat (limited to 'makefu/1systems/wry/config.nix')
-rw-r--r--makefu/1systems/wry/config.nix54
1 files changed, 54 insertions, 0 deletions
diff --git a/makefu/1systems/wry/config.nix b/makefu/1systems/wry/config.nix
new file mode 100644
index 000000000..2db1a9a95
--- /dev/null
+++ b/makefu/1systems/wry/config.nix
@@ -0,0 +1,54 @@
+{ config, lib, pkgs, ... }:
+
+with import <stockholm/lib>;
+let
+
+ external-ip = config.krebs.build.host.nets.internet.ip4.addr;
+ internal-ip = config.krebs.build.host.nets.retiolum.ip4.addr;
+in {
+ imports = [
+ <stockholm/makefu>
+ # 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>
+
+ # <stockholm/makefu/2configs/bepasty-dual.nix>
+
+ <stockholm/makefu/2configs/iodined.nix>
+ <stockholm/makefu/2configs/backup.nix>
+
+ # other nginx
+ # <stockholm/makefu/2configs/nginx/euer.test.nix>
+
+ # collectd
+ <stockholm/makefu/2configs/stats/client.nix>
+ <stockholm/makefu/2configs/logging/client.nix>
+
+ <stockholm/makefu/2configs/tinc/retiolum.nix>
+ # <stockholm/makefu/2configs/torrent.nix>
+ ];
+
+ krebs.build.host = config.krebs.hosts.wry;
+
+ # prepare graphs
+ services.nginx.enable = true;
+ krebs.retiolum-bootstrap.enable = true;
+
+ networking = {
+ firewall = {
+ allowPing = true;
+ logRefusedConnections = false;
+ allowedTCPPorts = [ 53 80 443 ];
+ allowedUDPPorts = [ 655 53 ];
+ };
+ interfaces.enp2s1.ip4 = [{
+ address = external-ip;
+ prefixLength = 24;
+ }];
+ defaultGateway = "104.233.87.1";
+ nameservers = [ "8.8.8.8" ];
+ };
+
+ environment.systemPackages = [ pkgs.screen ];
+}