diff --git a/modules/networking.nix b/modules/networking.nix index cc98739..16249e7 100644 --- a/modules/networking.nix +++ b/modules/networking.nix @@ -1,6 +1,8 @@ { config, lib, pkgs, ... }: -{ +let password = builtins.readFile /var/keys/ddclient; + +in { # Assign a static IP networking = { hostName = "unit"; @@ -31,6 +33,15 @@ }; }; + # Dynamic DNS configuration + services.ddclient = { + enable = true; + quiet = true; + protocol = "duckdns"; + domains = [ "coace.duckdns.org" ]; + inherit password; + }; + # Firewall configuration networking.firewall = { allowedTCPPorts = [