2015-09-27 15:23:54 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
|
2015-10-01 18:48:41 +02:00
|
|
|
ip = (lib.head config.krebs.build.host.nets.internet.addrs4);
|
2015-09-27 15:23:54 +02:00
|
|
|
in {
|
|
|
|
imports = [
|
|
|
|
../../tv/2configs/CAC-CentOS-7-64bit.nix
|
|
|
|
../2configs/base.nix
|
2015-10-01 18:48:41 +02:00
|
|
|
../2configs/base-sources.nix
|
2015-09-27 15:23:54 +02:00
|
|
|
../2configs/tinc-basic-retiolum.nix
|
|
|
|
{
|
|
|
|
}
|
|
|
|
];
|
|
|
|
networking.firewall.allowPing = true;
|
|
|
|
networking.interfaces.enp2s1.ip4 = [
|
|
|
|
{
|
|
|
|
address = ip;
|
|
|
|
prefixLength = 24;
|
|
|
|
}
|
|
|
|
];
|
2015-10-01 18:48:41 +02:00
|
|
|
networking.defaultGateway = "104.233.87.1";
|
2015-09-27 15:23:54 +02:00
|
|
|
networking.nameservers = [
|
|
|
|
"8.8.8.8"
|
|
|
|
];
|
|
|
|
|
|
|
|
# based on ../../tv/2configs/CAC-Developer-2.nix
|
|
|
|
sound.enable = false;
|
2015-10-01 18:48:41 +02:00
|
|
|
|
|
|
|
# prepare graphs
|
|
|
|
nixpkgs.config.packageOverrides = pkgs: { tinc = pkgs.tinc_pre; };
|
|
|
|
|
2015-09-27 15:23:54 +02:00
|
|
|
krebs.build = {
|
|
|
|
user = config.krebs.users.makefu;
|
|
|
|
target = "root@${ip}";
|
|
|
|
host = config.krebs.hosts.wry;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|