feat(router0-dmz0): init bpir3 based router

This commit is contained in:
steveej 2023-08-10 21:45:49 +02:00
parent 5ec13b17b7
commit 6a2993b665
20 changed files with 1112 additions and 211 deletions

View file

@ -11,29 +11,4 @@ in {
domains = mkOption {type = types.listOf types.str;};
passwordFile = mkOption {type = types.path;};
};
config = lib.mkIf cfg.enable {
users.groups.ddclient = {};
users.users.ddclient = {
isSystemUser = true;
group = "ddclient";
};
services.ddclient = {
enable = cfg.enable;
verbose = true;
protocol = "hetzner";
# see https://github.com/ddclient/ddclient/blob/a4eab34ab4719d1e2146d8c9c4449b70dd7e0163/ddclient.in#L775
username = "token";
inherit (cfg) zone domains passwordFile;
extraConfig = ''
'';
};
systemd.services.ddclient.serviceConfig.User = config.users.users.ddclient.name;
systemd.services.ddclient.serviceConfig.Group = config.users.groups.ddclient.name;
};
}

View file

@ -9,15 +9,4 @@ in {
enable = mkEnableOption "Enable ddclient-ovh";
domain = mkOption {type = types.str;};
};
config = lib.mkIf cfg.enable {
services.ddclient = {
enable = true;
protocol = "dyndns2";
server = "www.ovh.com";
ssl = true;
domains = [cfg.domain];
use = "web";
};
};
}