infra/hosts/metronom/networking.nix
teutat3s 6ea916603c
All checks were successful
Flake checks / Check (pull_request) Successful in 4m0s
networking: set networking.domain in core module
2024-06-06 19:30:11 +02:00

23 lines
396 B
Nix

{
config,
pkgs,
flake,
...
}:
{
networking.hostName = "metronom";
networking.extraHosts = ''
127.0.0.2 mail.pub.solar mail
::1 mail.pub.solar mail
'';
networking.hostId = "00000002";
networking.enableIPv6 = true;
networking.useDHCP = false;
networking.interfaces."enp1s0".useDHCP = true;
# TODO: ssh via wireguard only
services.openssh.openFirewall = true;
}