infrastructure/machines/public-cof/networking.nix

21 lines
384 B
Nix

{ ... }:
{
networking = {
hostName = "public-cof";
useDHCP = false;
interfaces.ens18 = {
useDHCP = true;
ipv6.addresses = [{
address = "2001:470:1f13:187:c08e:feff:fe4d:f5f5";
prefixLength = 64;
}];
};
interfaces.ens19 = {
useDHCP = true;
};
firewall.allowedTCPPorts = [ 22 ];
firewall.enable = true;
};
}