2015-10-03 19:34:37 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
2015-07-21 19:04:40 +02:00
|
|
|
|
2015-10-03 19:34:37 +02:00
|
|
|
let
|
|
|
|
inherit (import ../4lib { inherit pkgs lib; }) getDefaultGateway;
|
|
|
|
|
2016-04-08 03:53:34 +02:00
|
|
|
ip = config.krebs.build.host.nets.internet.ip4.addr;
|
2015-10-03 19:34:37 +02:00
|
|
|
in {
|
2015-07-21 19:04:40 +02:00
|
|
|
imports = [
|
2016-02-15 16:27:11 +01:00
|
|
|
../.
|
2015-10-17 15:57:43 +02:00
|
|
|
../2configs/os-templates/CAC-CentOS-7-64bit.nix
|
2016-04-15 14:39:03 +02:00
|
|
|
../2configs/default.nix
|
2016-04-12 15:17:42 +02:00
|
|
|
../2configs/exim-retiolum.nix
|
2015-07-29 14:54:23 +02:00
|
|
|
../2configs/retiolum.nix
|
2015-10-04 14:20:12 +02:00
|
|
|
../2configs/git.nix
|
2015-10-03 18:21:01 +02:00
|
|
|
../2configs/realwallpaper.nix
|
2016-05-09 11:15:02 +02:00
|
|
|
../2configs/privoxy-retiolum.nix
|
2015-07-21 19:04:40 +02:00
|
|
|
{
|
|
|
|
networking.interfaces.enp2s1.ip4 = [
|
|
|
|
{
|
2015-10-03 19:34:37 +02:00
|
|
|
address = ip;
|
2015-07-21 19:04:40 +02:00
|
|
|
prefixLength = 24;
|
|
|
|
}
|
|
|
|
];
|
2015-10-03 19:34:37 +02:00
|
|
|
networking.defaultGateway = getDefaultGateway ip;
|
2015-07-21 19:04:40 +02:00
|
|
|
networking.nameservers = [
|
|
|
|
"8.8.8.8"
|
|
|
|
];
|
|
|
|
|
|
|
|
}
|
2015-10-17 15:57:43 +02:00
|
|
|
{
|
|
|
|
sound.enable = false;
|
|
|
|
}
|
2015-07-21 19:04:40 +02:00
|
|
|
];
|
|
|
|
|
2015-10-19 14:00:15 +02:00
|
|
|
krebs.build.host = config.krebs.hosts.cloudkrebs;
|
2015-07-21 19:04:40 +02:00
|
|
|
}
|