dn42: enable collectd, clean up
This commit is contained in:
parent
fc73cf3e74
commit
13ae483d22
|
@ -5,22 +5,27 @@ let
|
|||
address6 = "fe80::deca:fbad";
|
||||
neighbors = pkgs.neighbors;
|
||||
in {
|
||||
networking.hostName = "dn42";
|
||||
# networking.defaultGateway6 = {
|
||||
# address = "2a02:8106:208:5201::c3d2:4";
|
||||
# interface = "eth0";
|
||||
# };
|
||||
networking.nameservers = [ "172.20.72.6" "172.20.72.10" ];
|
||||
networking.interfaces.eth0 = {
|
||||
ipv4.addresses = [{
|
||||
address = address4;
|
||||
prefixLength = 24;
|
||||
}];
|
||||
networking = {
|
||||
hostName = "dn42";
|
||||
nameservers = [ "172.20.72.6" "172.20.72.10" ];
|
||||
useNetworkd = true;
|
||||
# No Firewalling!
|
||||
firewall.enable = false;
|
||||
useDHCP = false;
|
||||
interfaces.eth0 = {
|
||||
ipv4.addresses = [{
|
||||
address = address4;
|
||||
prefixLength = 24;
|
||||
}];
|
||||
};
|
||||
};
|
||||
c3d2 = {
|
||||
isInHq = true;
|
||||
hq = {
|
||||
interface = "eth0";
|
||||
statistics.enable = true;
|
||||
};
|
||||
};
|
||||
c3d2.isInHq = true;
|
||||
c3d2.hq.interface = "eth0";
|
||||
networking.useDHCP = false;
|
||||
networking.useNetworkd = true;
|
||||
services.resolved.enable = false;
|
||||
|
||||
environment.systemPackages = with pkgs; [ vim ];
|
||||
|
@ -29,9 +34,6 @@ in {
|
|||
services.openssh.enable = true;
|
||||
services.openssh.permitRootLogin = "yes";
|
||||
|
||||
# No Firewalling!
|
||||
networking.firewall.enable = false;
|
||||
|
||||
boot.kernel.sysctl = {
|
||||
"net.ipv4.conf.all.forwarding" = true;
|
||||
"net.ipv4.conf.default.forwarding" = true;
|
||||
|
|
Loading…
Reference in New Issue
Block a user