stockholm/makefu/1systems/wry.nix

48 lines
1.1 KiB
Nix
Raw Normal View History

2015-09-27 13:23:54 +00:00
{ config, lib, pkgs, ... }:
let
2015-10-01 16:48:41 +00:00
ip = (lib.head config.krebs.build.host.nets.internet.addrs4);
2015-09-27 13:23:54 +00:00
in {
imports = [
../../tv/2configs/CAC-CentOS-7-64bit.nix
../2configs/base.nix
2015-10-01 16:48:41 +00:00
../2configs/base-sources.nix
2015-09-27 13:23:54 +00:00
../2configs/tinc-basic-retiolum.nix
];
2015-10-04 16:55:53 +00:00
2015-09-27 13:23:54 +00:00
networking.firewall.allowPing = true;
networking.interfaces.enp2s1.ip4 = [
{
address = ip;
prefixLength = 24;
}
];
2015-10-01 16:48:41 +00:00
networking.defaultGateway = "104.233.87.1";
2015-09-27 13:23:54 +00:00
networking.nameservers = [
"8.8.8.8"
];
# based on ../../tv/2configs/CAC-Developer-2.nix
sound.enable = false;
2015-10-01 16:48:41 +00:00
# prepare graphs
nixpkgs.config.packageOverrides = pkgs: { tinc = pkgs.tinc_pre; };
2015-10-04 16:55:53 +00:00
krebs.nginx.enable = true;
makefu.tinc_graphs.enable = true;
makefu.tinc_graphs.krebsNginx = {
enable = true;
# TODO: remove hard-coded hostname
hostnames_complete = [ "graphs.wry" ];
2015-10-04 16:55:53 +00:00
hostnames_anonymous = [ "graphs.krebsco.de" ];
};
networking.firewall.allowedTCPPorts = [80];
2015-10-01 16:48:41 +00:00
2015-09-27 13:23:54 +00:00
krebs.build = {
user = config.krebs.users.makefu;
target = "root@${ip}";
host = config.krebs.hosts.wry;
};
}