stockholm/makefu/1systems/shoney.nix

39 lines
880 B
Nix
Raw Normal View History

2016-06-12 17:48:15 +00:00
{ config, pkgs, ... }:
let
2016-06-13 14:22:51 +00:00
ip = "64.137.234.215";
alt-ip = "64.137.234.210";
extra-ip = "64.137.234.114"; #currently unused
gw = "64.137.234.1";
2016-06-12 17:48:15 +00:00
in {
imports = [
../.
2016-06-13 14:22:51 +00:00
../2configs/hw/CAC.nix
../2configs/fs/CAC-CentOS-7-64bit.nix
2016-06-12 17:48:15 +00:00
];
2016-06-13 14:22:51 +00:00
2016-06-13 23:33:41 +00:00
services.tinc.networks.siem.name = "sjump";
2016-06-13 14:22:51 +00:00
2016-06-12 17:48:15 +00:00
# minimal resources
services.nixosManual.enable = false;
programs.man.enable = false;
nix.gc.automatic = true;
nix.gc.dates = "03:10";
krebs = {
enable = true;
retiolum.enable = true;
build.host = config.krebs.hosts.shoney;
};
2016-06-13 14:22:51 +00:00
networking.interfaces.enp2s1.ip4 = [
{ address = ip; prefixLength = 24; }
{ address = alt-ip; prefixLength = 24; }
];
2016-06-13 23:33:41 +00:00
2016-06-12 17:48:15 +00:00
networking.defaultGateway = gw;
networking.nameservers = [ "8.8.8.8" ];
2016-06-13 14:22:51 +00:00
networking.firewall.allowedUDPPorts = [ 655 1655 ];
networking.firewall.allowedTCPPorts = [ 655 1655 ];
2016-06-12 17:48:15 +00:00
}