Configure ddclient with duckdns as a provider
This commit is contained in:
parent
41ab42449a
commit
826530e5bb
|
@ -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 = [
|
||||
|
|
Loading…
Reference in New Issue