infra/hosts/metronom/networking.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
431 B
Nix
Raw Normal View History

2024-05-22 19:49:34 +00:00
{
config,
pkgs,
flake,
...
}:
{
networking.hostName = "metronom";
2024-05-27 15:51:02 +00:00
networking.extraHosts = ''
127.0.0.2 mail.pub.solar mail
::1 mail.pub.solar mail
'';
2024-05-22 19:49:34 +00:00
networking.domain = "pub.solar";
networking.hostId = "00000002";
networking.enableIPv6 = true;
networking.useDHCP = false;
networking.interfaces."enp1s0".useDHCP = true;
# TODO: ssh via wireguard only
services.openssh.openFirewall = true;
}