nixos-config/nixos/networking.nix

29 lines
533 B
Nix
Raw Normal View History

2023-08-17 21:46:39 +05:00
{ config, ... }:
{
networking = {
hostName = "comfycamp";
dhcpcd.enable = true;
defaultGateway = "192.168.0.1";
nameservers = [ "1.1.1.1" ];
firewall = {
2023-08-19 13:36:18 +05:00
enable = true;
2023-08-19 16:59:21 +05:00
allowedTCPPorts = [
22 # SSH
80 # nginx
443 # nginx
25 # smtp inbound
465 # smtp submission
587 # smtp submission
143 # imap
993 # imap
];
2023-08-19 13:36:18 +05:00
# Jellyfin
allowedUDPPorts = [ 1900 7359 ];
2023-08-17 21:46:39 +05:00
};
wireless.enable = false;
};
}