zion/modules/networking.nix

25 lines
508 B
Nix
Raw Normal View History

2019-11-06 23:04:16 +01:00
{ config, pkgs, lib, ... }:
{
environment.systemPackages = with pkgs; [
ddclient
];
# Dynamic DNS configuration
services.ddclient = {
enable = true;
quiet = true;
2019-11-10 17:47:46 +01:00
protocol = "duckdns";
domains = [ "coolneng.duckdns.org" ];
password = "7eebec3b-945a-4ab5-a6d4-e3a8e2eee4eb";
2019-11-06 23:04:16 +01:00
};
# Firewall configuration
networking.firewall = {
2019-11-08 14:14:32 +01:00
allowedTCPPorts = [ 631 6566 22067 8384 5232 ];
2019-11-06 23:04:16 +01:00
autoLoadConntrackHelpers = true;
connectionTrackingModules = [ "sane" ];
};
}